Home
last modified time | relevance | path

Searched refs:olen (Results 1 – 25 of 61) sorted by relevance

123

/net-tools-3.6.0/mbedtls-2.4.0/library/
Dentropy_poll.c60 size_t *olen ) in mbedtls_platform_entropy_poll() argument
64 *olen = 0; in mbedtls_platform_entropy_poll()
79 *olen = len; in mbedtls_platform_entropy_poll()
151 unsigned char *output, size_t len, size_t *olen ) in mbedtls_platform_entropy_poll() argument
168 *olen = ret; in mbedtls_platform_entropy_poll()
173 *olen = 0; in mbedtls_platform_entropy_poll()
187 *olen = len; in mbedtls_platform_entropy_poll()
196 unsigned char *output, size_t len, size_t *olen ) in mbedtls_null_entropy_poll() argument
200 *olen = 0; in mbedtls_null_entropy_poll()
205 *olen = sizeof(unsigned char); in mbedtls_null_entropy_poll()
[all …]
Dbase64.c77 int mbedtls_base64_encode( unsigned char *dst, size_t dlen, size_t *olen, in mbedtls_base64_encode() argument
86 *olen = 0; in mbedtls_base64_encode()
94 *olen = BASE64_SIZE_T_MAX; in mbedtls_base64_encode()
102 *olen = n + 1; in mbedtls_base64_encode()
135 *olen = p - dst; in mbedtls_base64_encode()
144 int mbedtls_base64_decode( unsigned char *dst, size_t dlen, size_t *olen, in mbedtls_base64_decode() argument
191 *olen = 0; in mbedtls_base64_decode()
200 *olen = n; in mbedtls_base64_decode()
221 *olen = p - dst; in mbedtls_base64_decode()
Dssl_cli.c60 size_t *olen ) in ssl_write_hostname_ext() argument
66 *olen = 0; in ssl_write_hostname_ext()
115 *olen = hostname_len + 9; in ssl_write_hostname_ext()
122 size_t *olen ) in ssl_write_renegotiation_ext() argument
127 *olen = 0; in ssl_write_renegotiation_ext()
152 *olen = 5 + ssl->verify_data_len; in ssl_write_renegotiation_ext()
163 size_t *olen ) in ssl_write_signature_algorithms_ext() argument
173 *olen = 0; in ssl_write_signature_algorithms_ext()
239 *olen = 6 + sig_alg_len; in ssl_write_signature_algorithms_ext()
248 size_t *olen ) argument
[all …]
Dcipher.c271 size_t ilen, unsigned char *output, size_t *olen ) in mbedtls_cipher_update() argument
276 if( NULL == ctx || NULL == ctx->cipher_info || NULL == olen ) in mbedtls_cipher_update()
281 *olen = 0; in mbedtls_cipher_update()
289 *olen = ilen; in mbedtls_cipher_update()
303 *olen = ilen; in mbedtls_cipher_update()
357 *olen += block_size; in mbedtls_cipher_update()
397 *olen += ilen; in mbedtls_cipher_update()
414 *olen = ilen; in mbedtls_cipher_update()
430 *olen = ilen; in mbedtls_cipher_update()
445 *olen = ilen; in mbedtls_cipher_update()
[all …]
Decdh.c118 int mbedtls_ecdh_make_params( mbedtls_ecdh_context *ctx, size_t *olen, in mbedtls_ecdh_make_params() argument
144 *olen = grp_len + pt_len; in mbedtls_ecdh_make_params()
199 int mbedtls_ecdh_make_public( mbedtls_ecdh_context *ctx, size_t *olen, in mbedtls_ecdh_make_public() argument
214 olen, buf, blen ); in mbedtls_ecdh_make_public()
241 int mbedtls_ecdh_calc_secret( mbedtls_ecdh_context *ctx, size_t *olen, in mbedtls_ecdh_calc_secret() argument
260 *olen = ctx->grp.pbits / 8 + ( ( ctx->grp.pbits % 8 ) != 0 ); in mbedtls_ecdh_calc_secret()
261 return mbedtls_mpi_write_binary( &ctx->z, buf, *olen ); in mbedtls_ecdh_calc_secret()
Drsa.c283 size_t olen; in mbedtls_rsa_public() local
301 olen = ctx->len; in mbedtls_rsa_public()
303 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( &T, output, olen ) ); in mbedtls_rsa_public()
369 size_t olen; in mbedtls_rsa_private() local
437 olen = ctx->len; in mbedtls_rsa_private()
438 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( &T, output, olen ) ); in mbedtls_rsa_private()
515 size_t olen; in mbedtls_rsa_rsaes_oaep_encrypt() local
532 olen = ctx->len; in mbedtls_rsa_rsaes_oaep_encrypt()
536 if( ilen + 2 * hlen + 2 < ilen || olen < ilen + 2 * hlen + 2 ) in mbedtls_rsa_rsaes_oaep_encrypt()
539 memset( output, 0, olen ); in mbedtls_rsa_rsaes_oaep_encrypt()
[all …]
Dentropy.c228 size_t olen; in entropy_gather_internal() local
241 olen = 0; in entropy_gather_internal()
243 buf, MBEDTLS_ENTROPY_MAX_GATHER, &olen ) ) != 0 ) in entropy_gather_internal()
251 if( olen > 0 ) in entropy_gather_internal()
253 entropy_update( ctx, (unsigned char) i, buf, olen ); in entropy_gather_internal()
254 ctx->source[i].size += olen; in entropy_gather_internal()
464 size_t len, size_t *olen ) in entropy_dummy_source() argument
469 *olen = len; in entropy_dummy_source()
481 size_t olen = 0; in mbedtls_entropy_source_self_test_gather() local
487 buf_len - entropy_len, &olen ) ) != 0 ) in mbedtls_entropy_source_self_test_gather()
[all …]
Dssl_srv.c1858 size_t *olen ) argument
1864 *olen = 0;
1876 *olen = 4;
1883 size_t *olen ) argument
1892 *olen = 0;
1907 *olen = 0;
1919 *olen = 4;
1926 size_t *olen ) argument
1933 *olen = 0;
1946 *olen = 4;
[all …]
Ddhm.c152 unsigned char *output, size_t *olen, in mbedtls_dhm_make_params() argument
204 *olen = p - output; in mbedtls_dhm_make_params()
237 unsigned char *output, size_t olen, in mbedtls_dhm_make_public() argument
243 if( ctx == NULL || olen < 1 || olen > ctx->len ) in mbedtls_dhm_make_public()
270 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( &ctx->GX, output, olen ) ); in mbedtls_dhm_make_public()
349 unsigned char *output, size_t output_size, size_t *olen, in mbedtls_dhm_calc_secret() argument
385 *olen = mbedtls_mpi_size( &ctx->K ); in mbedtls_dhm_calc_secret()
387 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( &ctx->K, output, *olen ) ); in mbedtls_dhm_calc_secret()
/net-tools-3.6.0/mbedtls-2.4.0/tests/suites/
Dtest_suite_pem.function17 size_t buf_len, olen = 0, olen2 = 0;
23 ret = mbedtls_pem_write_buffer( start, end, buf, buf_len, NULL, 0, &olen );
26 check_buf = (unsigned char *) mbedtls_calloc( 1, olen );
29 memset( check_buf, 0, olen );
30 ret = mbedtls_pem_write_buffer( start, end, buf, buf_len, check_buf, olen, &olen2 );
32 TEST_ASSERT( olen2 <= olen );
33 TEST_ASSERT( olen > strlen( (char*) result_str ) );
35 TEST_ASSERT( strncmp( (char *) check_buf, (char *) result_str, olen ) == 0 );
Dtest_suite_x509write.function22 size_t olen = 0, pem_len = 0;
50 olen = fread( check_buf, 1, sizeof( check_buf ), f );
53 TEST_ASSERT( olen >= pem_len - 1 );
87 size_t olen = 0, pem_len = 0;
134 olen = fread( check_buf, 1, sizeof(check_buf), f );
136 TEST_ASSERT( olen < sizeof(check_buf) );
138 TEST_ASSERT( olen >= pem_len - 1 );
Dtest_suite_ecp.function199 size_t olen;
213 &olen, buf, blen ) == ret );
217 hexify( str, buf, olen );
311 size_t olen;
320 MBEDTLS_ECP_PF_COMPRESSED, &olen, buf, 256 ) == 0 );
321 TEST_ASSERT( mbedtls_ecp_tls_read_point( &grp, &pt, &vbuf, olen )
323 TEST_ASSERT( vbuf == buf + olen );
327 MBEDTLS_ECP_PF_UNCOMPRESSED, &olen, buf, 256 ) == 0 );
328 TEST_ASSERT( mbedtls_ecp_tls_read_point( &grp, &pt, &vbuf, olen ) == 0 );
332 TEST_ASSERT( vbuf == buf + olen );
[all …]
Dtest_suite_pk.function39 int mbedtls_rsa_decrypt_func( void *ctx, int mode, size_t *olen,
43 return( mbedtls_rsa_pkcs1_decrypt( (mbedtls_rsa_context *) ctx, NULL, NULL, mode, olen,
288 size_t msg_len, olen, res_len;
310 output, &olen, sizeof( output ),
312 TEST_ASSERT( olen == res_len );
313 TEST_ASSERT( memcmp( output, result, olen ) == 0 );
331 size_t clear_len, olen, cipher_len;
370 olen = 0;
372 output, &olen, sizeof( output ),
376 TEST_ASSERT( olen == clear_len );
[all …]
/net-tools-3.6.0/mbedtls-2.4.0/include/mbedtls/
Dentropy_poll.h53 unsigned char *output, size_t len, size_t *olen );
61 unsigned char *output, size_t len, size_t *olen );
71 unsigned char *output, size_t len, size_t *olen );
79 unsigned char *output, size_t len, size_t *olen );
92 unsigned char *output, size_t len, size_t *olen );
102 unsigned char *output, size_t len, size_t *olen );
Dpkcs11.h112 int mode, size_t *olen,
143 static inline int mbedtls_ssl_pkcs11_decrypt( void *ctx, int mode, size_t *olen, in mbedtls_ssl_pkcs11_decrypt() argument
147 return mbedtls_pkcs11_decrypt( (mbedtls_pkcs11_context *) ctx, mode, olen, input, output, in mbedtls_ssl_pkcs11_decrypt()
Decjpake.h145 unsigned char *buf, size_t len, size_t *olen,
180 unsigned char *buf, size_t len, size_t *olen,
214 unsigned char *buf, size_t len, size_t *olen,
Ddhm.h202 unsigned char *output, size_t *olen,
231 unsigned char *output, size_t olen,
254 unsigned char *output, size_t output_size, size_t *olen,
Decdh.h128 int mbedtls_ecdh_make_params( mbedtls_ecdh_context *ctx, size_t *olen,
174 int mbedtls_ecdh_make_public( mbedtls_ecdh_context *ctx, size_t *olen,
205 int mbedtls_ecdh_calc_secret( mbedtls_ecdh_context *ctx, size_t *olen,
Dcipher.h231 void (*add_padding)( unsigned char *output, size_t olen, size_t data_len );
556 size_t ilen, unsigned char *output, size_t *olen );
576 unsigned char *output, size_t *olen );
638 unsigned char *output, size_t *olen );
667 unsigned char *output, size_t *olen,
701 unsigned char *output, size_t *olen,
Dbase64.h54 int mbedtls_base64_encode( unsigned char *dst, size_t dlen, size_t *olen,
74 int mbedtls_base64_decode( unsigned char *dst, size_t dlen, size_t *olen,
/net-tools-3.6.0/mbedtls-2.4.0/programs/aes/
Dcrypt_and_hash.c78 size_t keylen, ilen, olen; in main() local
341 if( mbedtls_cipher_update( &cipher_ctx, buffer, ilen, output, &olen ) != 0 ) in main()
347 mbedtls_md_hmac_update( &md_ctx, output, olen ); in main()
349 if( fwrite( output, 1, olen, fout ) != olen ) in main()
351 mbedtls_fprintf( stderr, "fwrite(%ld bytes) failed\n", (long) olen ); in main()
356 if( mbedtls_cipher_finish( &cipher_ctx, output, &olen ) != 0 ) in main()
361 mbedtls_md_hmac_update( &md_ctx, output, olen ); in main()
363 if( fwrite( output, 1, olen, fout ) != olen ) in main()
365 mbedtls_fprintf( stderr, "fwrite(%ld bytes) failed\n", (long) olen ); in main()
487 &olen ) != 0 ) in main()
[all …]
/net-tools-3.6.0/mbedtls-2.4.0/programs/pkey/
Dpk_sign.c70 size_t olen = 0; in main() local
123 if( ( ret = mbedtls_pk_sign( &pk, MBEDTLS_MD_SHA256, hash, 0, buf, &olen, in main()
142 if( fwrite( buf, 1, olen, f ) != olen ) in main()
Drsa_sign_pss.c71 size_t olen = 0; in main() local
134 if( ( ret = mbedtls_pk_sign( &pk, MBEDTLS_MD_SHA256, hash, 0, buf, &olen, in main()
153 if( fwrite( buf, 1, olen, f ) != olen ) in main()
Dpk_encrypt.c63 size_t i, olen = 0; in main() local
123 buf, &olen, sizeof(buf), in main()
140 for( i = 0; i < olen; i++ ) in main()
/net-tools-3.6.0/mbedtls-2.4.0/yotta/data/
Dentropy_hardware_poll.c56 unsigned char *output, size_t len, size_t *olen ) in mbedtls_hardware_poll() argument
78 *olen = len; in mbedtls_hardware_poll()

123