/mbedtls-development/3rdparty/everest/library/ |
A D | x25519.c | 59 int mbedtls_x25519_make_params( mbedtls_x25519_context *ctx, size_t *olen, in mbedtls_x25519_make_params() argument 71 *olen = MBEDTLS_X25519_KEY_SIZE_BYTES + 4; in mbedtls_x25519_make_params() 72 if( blen < *olen ) in mbedtls_x25519_make_params() 107 size_t olen = 0; in mbedtls_x25519_get_params() local 111 …return mbedtls_ecp_point_write_binary( &key->grp, &key->Q, MBEDTLS_ECP_PF_COMPRESSED, &olen, ctx->… in mbedtls_x25519_get_params() 119 int mbedtls_x25519_calc_secret( mbedtls_x25519_context *ctx, size_t *olen, in mbedtls_x25519_calc_secret() argument 129 *olen = MBEDTLS_X25519_KEY_SIZE_BYTES; in mbedtls_x25519_calc_secret() 131 if( blen < *olen ) in mbedtls_x25519_calc_secret() 145 int mbedtls_x25519_make_public( mbedtls_x25519_context *ctx, size_t *olen, in mbedtls_x25519_make_public() argument 159 *olen = MBEDTLS_X25519_KEY_SIZE_BYTES + 1; in mbedtls_x25519_make_public() [all …]
|
A D | everest.c | 53 int mbedtls_everest_make_params( mbedtls_ecdh_context_everest *ctx, size_t *olen, in mbedtls_everest_make_params() argument 59 return mbedtls_x25519_make_params( x25519_ctx, olen, buf, blen, f_rng, p_rng ); in mbedtls_everest_make_params() 81 int mbedtls_everest_make_public( mbedtls_ecdh_context_everest *ctx, size_t *olen, in mbedtls_everest_make_public() argument 87 return mbedtls_x25519_make_public( x25519_ctx, olen, buf, blen, f_rng, p_rng ); in mbedtls_everest_make_public() 97 int mbedtls_everest_calc_secret( mbedtls_ecdh_context_everest *ctx, size_t *olen, in mbedtls_everest_calc_secret() argument 103 return mbedtls_x25519_calc_secret( x25519_ctx, olen, buf, blen, f_rng, p_rng ); in mbedtls_everest_calc_secret()
|
/mbedtls-development/library/ |
A D | entropy_poll.c | 59 size_t *olen ) in mbedtls_platform_entropy_poll() argument 63 *olen = 0; in mbedtls_platform_entropy_poll() 78 *olen = len; in mbedtls_platform_entropy_poll() 162 unsigned char *output, size_t len, size_t *olen ) in mbedtls_platform_entropy_poll() argument 173 *olen = ret; in mbedtls_platform_entropy_poll() 188 *olen = len; in mbedtls_platform_entropy_poll() 192 *olen = 0; in mbedtls_platform_entropy_poll() 206 *olen = len; in mbedtls_platform_entropy_poll() 216 unsigned char *output, size_t len, size_t *olen ) in mbedtls_nv_seed_poll() argument 231 *olen = use_len; in mbedtls_nv_seed_poll()
|
A D | ecdh.c | 299 size_t *olen, int point_format, in ecdh_make_params_internal() argument 345 *olen = grp_len + pt_len; in ecdh_make_params_internal() 363 ECDH_VALIDATE_RET( olen != NULL ); in mbedtls_ecdh_make_params() 522 size_t *olen, int point_format, in ecdh_make_public_internal() argument 569 ECDH_VALIDATE_RET( olen != NULL ); in mbedtls_ecdh_make_public() 685 *olen = ctx->grp.pbits / 8 + ( ( ctx->grp.pbits % 8 ) != 0 ); in ecdh_calc_secret_internal() 688 return mbedtls_mpi_write_binary_le( &ctx->z, buf, *olen ); in ecdh_calc_secret_internal() 690 return mbedtls_mpi_write_binary( &ctx->z, buf, *olen ); in ecdh_calc_secret_internal() 703 ECDH_VALIDATE_RET( olen != NULL ); in mbedtls_ecdh_calc_secret() 747 olen, buf, blen ); in ecdh_tls13_make_params_internal() [all …]
|
A D | cipher.c | 556 *olen = 0; in mbedtls_cipher_update() 568 *olen = ilen; in mbedtls_cipher_update() 600 *olen = ilen; in mbedtls_cipher_update() 711 *olen = ilen; in mbedtls_cipher_update() 726 *olen = ilen; in mbedtls_cipher_update() 742 *olen = ilen; in mbedtls_cipher_update() 763 *olen = ilen; in mbedtls_cipher_update() 778 *olen = ilen; in mbedtls_cipher_update() 978 *olen = 0; in mbedtls_cipher_finish() 1318 output + *olen, ilen - *olen, in mbedtls_cipher_crypt() [all …]
|
A D | nist_kw.c | 168 size_t olen, padlen = 0; in mbedtls_nist_kw_wrap() local 309 size_t olen; in unwrap() local 370 size_t i, olen; in mbedtls_nist_kw_unwrap() local 608 size_t olen; in mbedtls_nist_kw_self_test() local 630 if( ret != 0 || kw_out_len[i] != olen || in mbedtls_nist_kw_self_test() 651 out, olen, out, &olen, sizeof( out ) ); in mbedtls_nist_kw_self_test() 653 if( ret != 0 || olen != kw_msg_len[i] || in mbedtls_nist_kw_self_test() 669 olen = sizeof( out ); in mbedtls_nist_kw_self_test() 685 if( ret != 0 || kwp_out_len[i] != olen || in mbedtls_nist_kw_self_test() 706 olen, out, &olen, sizeof( out ) ); in mbedtls_nist_kw_self_test() [all …]
|
A D | base64.c | 79 int mbedtls_base64_encode( unsigned char *dst, size_t dlen, size_t *olen, in mbedtls_base64_encode() argument 88 *olen = 0; in mbedtls_base64_encode() 96 *olen = BASE64_SIZE_T_MAX; in mbedtls_base64_encode() 104 *olen = n + 1; in mbedtls_base64_encode() 140 *olen = p - dst; in mbedtls_base64_encode() 178 int mbedtls_base64_decode( unsigned char *dst, size_t dlen, size_t *olen, in mbedtls_base64_decode() argument 235 *olen = 0; in mbedtls_base64_decode() 248 *olen = n; in mbedtls_base64_decode() 273 *olen = p - dst; in mbedtls_base64_decode()
|
A D | ssl_cli.c | 100 *olen = 0; in mbedtls_ssl_write_hostname_ext() 169 *olen = 0; in ssl_write_renegotiation_ext() 218 *olen = 0; in ssl_write_signature_algorithms_ext() 313 *olen = 0; in ssl_write_supported_elliptic_curves_ext() 374 *olen = 0; in ssl_write_supported_point_formats_ext() 389 *olen = 6; in ssl_write_supported_point_formats_ext() 406 *olen = 0; in ssl_write_ecjpake_kkpp_ext() 487 *olen = 0; in ssl_write_cid_ext() 523 *olen = 0; in ssl_write_max_fragment_length_ext() 541 *olen = 5; in ssl_write_max_fragment_length_ext() [all …]
|
A D | gcm.c | 84 size_t olen = 0; in gcm_gen_table() local 256 size_t use_len, olen = 0; in mbedtls_gcm_starts() local 401 size_t olen = 0; in gcm_mask() local 579 size_t olen; in mbedtls_gcm_crypt_and_tag() local 892 size_t olen; in mbedtls_gcm_self_test() local 1026 if( olen != 32 ) in mbedtls_gcm_self_test() 1035 if( olen != rest_len ) in mbedtls_gcm_self_test() 1046 if( olen != pt_len_test_data[i] ) in mbedtls_gcm_self_test() 1098 if( olen != 32 ) in mbedtls_gcm_self_test() 1107 if( olen != rest_len ) in mbedtls_gcm_self_test() [all …]
|
A D | ssl_tls13_client.c | 54 *olen = 0; in ssl_tls13_write_supported_versions_ext() 90 *olen = 7; in ssl_tls13_write_supported_versions_ext() 146 *olen = 0; in ssl_tls13_write_named_group_list_ecdhe() 171 *olen = p - buf; in ssl_tls13_write_named_group_list_ecdhe() 184 *olen = 0; in ssl_tls13_write_named_group_list_ecdhe() 197 *olen = 0; in ssl_tls13_write_named_group_list_dhe() 213 *olen = 0; in ssl_tls13_write_supported_groups_ext() 267 *olen = p - buf; in ssl_tls13_write_supported_groups_ext() 376 *olen = 0; in ssl_tls13_write_key_share_ext() 610 *olen = 0 ; in ssl_tls13_write_client_hello_cipher_suites() [all …]
|
A D | entropy_poll.h | 46 unsigned char *output, size_t len, size_t *olen ); 59 unsigned char *output, size_t len, size_t *olen ); 69 unsigned char *output, size_t len, size_t *olen );
|
A D | ssl_srv.c | 1947 *olen = 0; in ssl_write_cid_ext() 1996 *olen = 0; in ssl_write_encrypt_then_mac_ext() 2011 *olen = 0; in ssl_write_encrypt_then_mac_ext() 2023 *olen = 4; in ssl_write_encrypt_then_mac_ext() 2036 *olen = 0; in ssl_write_extended_ms_ext() 2049 *olen = 4; in ssl_write_extended_ms_ext() 2074 *olen = 4; in ssl_write_session_ticket_ext() 2141 *olen = 5; in ssl_write_max_fragment_length_ext() 2172 *olen = 6; in ssl_write_supported_point_formats_ext() 2186 *olen = 0; in ssl_write_ecjpake_kkpp_ext() [all …]
|
A D | entropy.c | 235 size_t olen; in entropy_gather_internal() local 248 olen = 0; in entropy_gather_internal() 250 buf, MBEDTLS_ENTROPY_MAX_GATHER, &olen ) ) != 0 ) in entropy_gather_internal() 258 if( olen > 0 ) in entropy_gather_internal() 261 buf, olen ) ) != 0 ) in entropy_gather_internal() 263 ctx->source[i].size += olen; in entropy_gather_internal() 515 size_t len, size_t *olen ) in entropy_dummy_source() argument 520 *olen = len; in entropy_dummy_source() 531 size_t olen = 0; in mbedtls_entropy_source_self_test_gather() local 537 buf_len - entropy_len, &olen ) ) != 0 ) in mbedtls_entropy_source_self_test_gather() [all …]
|
A D | rsa.c | 756 size_t olen; in mbedtls_rsa_public() local 780 olen = ctx->len; in mbedtls_rsa_public() 894 size_t olen; in mbedtls_rsa_private() local 1070 olen = ctx->len; in mbedtls_rsa_private() 1175 size_t olen; in mbedtls_rsa_rsaes_oaep_encrypt() local 1194 olen = ctx->len; in mbedtls_rsa_rsaes_oaep_encrypt() 1254 size_t nb_pad, olen; in mbedtls_rsa_rsaes_pkcs1_v15_encrypt() local 1262 olen = ctx->len; in mbedtls_rsa_rsaes_pkcs1_v15_encrypt() 1463 if( *olen != 0 ) in mbedtls_rsa_rsaes_oaep_decrypt() 1764 size_t olen; in rsa_rsassa_pss_sign() local [all …]
|
A D | ccm.c | 116 size_t olen = 0; in mbedtls_ccm_crypt() local 121 &olen ) ) != 0 ) in mbedtls_ccm_crypt() 145 size_t len_left, olen; in ccm_calculate_first_block_if_ready() local 194 if( ( ret = mbedtls_cipher_update( &ctx->cipher_ctx, ctx->y, 16, ctx->y, &olen ) ) != 0 ) in ccm_calculate_first_block_if_ready() 273 size_t olen, use_len, offset; in mbedtls_ccm_update_ad() local 322 … if( ( ret = mbedtls_cipher_update( &ctx->cipher_ctx, ctx->y, 16, ctx->y, &olen ) ) != 0 ) in mbedtls_ccm_update_ad() 347 size_t use_len, offset, olen; in mbedtls_ccm_update() local 389 … if( ( ret = mbedtls_cipher_update( &ctx->cipher_ctx, ctx->y, 16, ctx->y, &olen ) ) != 0 ) in mbedtls_ccm_update() 422 … if( ( ret = mbedtls_cipher_update( &ctx->cipher_ctx, ctx->y, 16, ctx->y, &olen ) ) != 0 ) in mbedtls_ccm_update() 495 size_t olen; in ccm_auth_crypt() local [all …]
|
/mbedtls-development/programs/aes/ |
A D | crypt_and_hash.c | 86 size_t keylen, ilen, olen; in main() local 353 mbedtls_md_hmac_update( &md_ctx, output, olen ); in main() 355 if( fwrite( output, 1, olen, fout ) != olen ) in main() 362 if( mbedtls_cipher_finish( &cipher_ctx, output, &olen ) != 0 ) in main() 367 mbedtls_md_hmac_update( &md_ctx, output, olen ); in main() 369 if( fwrite( output, 1, olen, fout ) != olen ) in main() 371 mbedtls_fprintf( stderr, "fwrite(%ld bytes) failed\n", (long) olen ); in main() 493 &olen ) != 0 ) in main() 499 if( fwrite( output, 1, olen, fout ) != olen ) in main() 532 mbedtls_cipher_finish( &cipher_ctx, output, &olen ); in main() [all …]
|
/mbedtls-development/tests/suites/ |
A D | test_suite_gcm.function | 21 size_t olen; 37 olen = 0xdeadbeef; 39 TEST_EQUAL( n1, olen ); 45 olen = 0xdeadbeef; 47 TEST_EQUAL( n2, olen ); 54 TEST_EQUAL( 0, olen ); 75 size_t olen; 92 olen = 0xdeadbeef; 115 size_t olen; 145 size_t olen = 0; [all …]
|
A D | test_suite_pem.function | 14 size_t olen = 0, olen2 = 0; 17 ret = mbedtls_pem_write_buffer( start, end, buf->x, buf->len, NULL, 0, &olen ); 20 check_buf = (unsigned char *) mbedtls_calloc( 1, olen ); 23 ret = mbedtls_pem_write_buffer( start, end, buf->x, buf->len, check_buf, olen, &olen2 ); 25 TEST_ASSERT( olen2 <= olen ); 26 TEST_ASSERT( olen > strlen( (char*) result_str ) ); 28 TEST_ASSERT( strncmp( (char *) check_buf, (char *) result_str, olen ) == 0 );
|
A D | test_suite_ccm.function | 21 size_t olen; 36 olen = 0xdeadbeef; 44 olen = 0xdeadbeef; 240 size_t olen; 491 size_t olen; 502 olen = 0xdeadbeef; 598 size_t olen; 702 size_t olen; 730 size_t olen; 764 size_t olen; [all …]
|
/mbedtls-development/tests/src/ |
A D | helpers.c | 195 unsigned char *mbedtls_test_unhexify_alloc( const char *ibuf, size_t *olen ) in mbedtls_test_unhexify_alloc() argument 200 *olen = strlen( ibuf ) / 2; in mbedtls_test_unhexify_alloc() 202 if( *olen == 0 ) in mbedtls_test_unhexify_alloc() 203 return( mbedtls_test_zero_alloc( *olen ) ); in mbedtls_test_unhexify_alloc() 205 obuf = mbedtls_calloc( 1, *olen ); in mbedtls_test_unhexify_alloc() 207 TEST_HELPER_ASSERT( mbedtls_test_unhexify( obuf, *olen, ibuf, &len ) == 0 ); in mbedtls_test_unhexify_alloc()
|
/mbedtls-development/programs/pkey/ |
A D | pk_sign.c | 69 size_t olen = 0; in main() local 123 buf, sizeof( buf ), &olen, in main() 141 if( fwrite( buf, 1, olen, f ) != olen ) in main()
|
A D | rsa_sign_pss.c | 70 size_t olen = 0; in main() local 139 buf, sizeof( buf ), &olen, in main() 157 if( fwrite( buf, 1, olen, f ) != olen ) in main()
|
/mbedtls-development/3rdparty/everest/include/everest/ |
A D | x25519.h | 81 int mbedtls_x25519_make_params( mbedtls_x25519_context *ctx, size_t *olen, 140 int mbedtls_x25519_calc_secret( mbedtls_x25519_context *ctx, size_t *olen, 163 int mbedtls_x25519_make_public( mbedtls_x25519_context *ctx, size_t *olen,
|
A D | everest.h | 93 int mbedtls_everest_make_params( mbedtls_ecdh_context_everest *ctx, size_t *olen, 178 int mbedtls_everest_make_public( mbedtls_ecdh_context_everest *ctx, size_t *olen, 225 int mbedtls_everest_calc_secret( mbedtls_ecdh_context_everest *ctx, size_t *olen,
|
/mbedtls-development/include/mbedtls/ |
A D | ecjpake.h | 176 unsigned char *buf, size_t len, size_t *olen, 217 unsigned char *buf, size_t len, size_t *olen, 257 unsigned char *buf, size_t len, size_t *olen,
|