Home
last modified time | relevance | path

Searched refs:mbedtls_md_get_size (Results 1 – 25 of 27) sorted by relevance

12

/third_party/mbedtls/programs/hash/
Dgeneric_sum.c71 for( i = 0; i < mbedtls_md_get_size( md_info ); i++ ) in generic_print()
111 if( n < (size_t) 2 * mbedtls_md_get_size( md_info ) + 4 ) in generic_check()
117 …if( line[2 * mbedtls_md_get_size( md_info )] != ' ' || line[2 * mbedtls_md_get_size( md_info ) + 1… in generic_check()
128 if( generic_wrapper( md_info, line + 2 + 2 * mbedtls_md_get_size( md_info ), sum ) != 0 ) in generic_check()
136 for( i = 0; i < mbedtls_md_get_size( md_info ); i++ ) in generic_check()
141 for( i = 0; i < 2 * mbedtls_md_get_size( md_info ); i++ ) in generic_check()
/third_party/mbedtls/programs/aes/
Dcrypt_and_hash.c433 … if( fwrite( digest, 1, mbedtls_md_get_size( md_info ), fout ) != mbedtls_md_get_size( md_info ) ) in main()
435 mbedtls_fprintf( stderr, "fwrite(%d bytes) failed\n", mbedtls_md_get_size( md_info ) ); in main()
451 if( filesize < 16 + mbedtls_md_get_size( md_info ) ) in main()
467 ( ( filesize - mbedtls_md_get_size( md_info ) ) % in main()
478 filesize -= ( 16 + mbedtls_md_get_size( md_info ) ); in main()
592 … if( fread( buffer, 1, mbedtls_md_get_size( md_info ), fin ) != mbedtls_md_get_size( md_info ) ) in main()
594 mbedtls_fprintf( stderr, "fread(%d bytes) failed\n", mbedtls_md_get_size( md_info ) ); in main()
600 for( i = 0; i < mbedtls_md_get_size( md_info ); i++ ) in main()
/third_party/mbedtls/library/
Dssl_tls13_keys.c267 ctx_len = mbedtls_md_get_size( md_info ); in mbedtls_ssl_tls13_derive_secret()
306 hlen = mbedtls_md_get_size( md_info ); in mbedtls_ssl_tls13_evolve_secret()
360 size_t const md_size = mbedtls_md_get_size( md_info ); in mbedtls_ssl_tls13_derive_early_secrets()
414 size_t const md_size = mbedtls_md_get_size( md_info ); in mbedtls_ssl_tls13_derive_handshake_secrets()
476 size_t const md_size = mbedtls_md_get_size( md_info ); in mbedtls_ssl_tls13_derive_application_secrets()
546 size_t const md_size = mbedtls_md_get_size( md_info ); in mbedtls_ssl_tls13_derive_resumption_master_secret()
574 size_t const md_size = mbedtls_md_get_size( md_info ); in mbedtls_ssl_tls13_key_schedule_stage_application()
602 size_t const md_size = mbedtls_md_get_size( md_info ); in ssl_tls13_calc_finished_core()
665 size_t const md_size = mbedtls_md_get_size( md_info ); in mbedtls_ssl_tls13_calculate_verify_data()
722 size_t const md_size = mbedtls_md_get_size( md_info ); in mbedtls_ssl_tls13_create_psk_binder()
[all …]
Dhkdf.c40 ret = mbedtls_hkdf_expand( md, prk, mbedtls_md_get_size( md ), in mbedtls_hkdf()
65 hash_len = mbedtls_md_get_size( md ); in mbedtls_hkdf_extract()
97 hash_len = mbedtls_md_get_size( md ); in mbedtls_hkdf_expand()
Dhmac_drbg.c66 size_t md_len = mbedtls_md_get_size( ctx->md_ctx.md_info ); in mbedtls_hmac_drbg_update()
129 mbedtls_md_get_size( md_info ) ) ) != 0 ) in mbedtls_hmac_drbg_seed_buf()
131 memset( ctx->V, 0x01, mbedtls_md_get_size( md_info ) ); in mbedtls_hmac_drbg_seed_buf()
253 md_size = mbedtls_md_get_size( md_info ); in mbedtls_hmac_drbg_seed()
325 size_t md_len = mbedtls_md_get_size( ctx->md_ctx.md_info ); in mbedtls_hmac_drbg_random_with_add()
Drsa.c1114 hlen = mbedtls_md_get_size( md_ctx->md_info ); in mgf_mask()
1181 hlen = mbedtls_md_get_size( md_info ); in mbedtls_rsa_rsaes_oaep_encrypt()
1362 hlen = mbedtls_md_get_size( md_info ); in mbedtls_rsa_rsaes_oaep_decrypt()
1580 if( hashlen != mbedtls_md_get_size( md_info ) ) in rsa_rsassa_pss_sign()
1588 hlen = mbedtls_md_get_size( md_info ); in rsa_rsassa_pss_sign()
1747 if( hashlen != mbedtls_md_get_size( md_info ) ) in rsa_rsassa_pkcs1_v15_encode()
1998 if( hashlen != mbedtls_md_get_size( md_info ) ) in mbedtls_rsa_rsassa_pss_verify_ext()
2006 hlen = mbedtls_md_get_size( md_info ); in mbedtls_rsa_rsassa_pss_verify_ext()
Dpkcs5.c229 unsigned char md_size = mbedtls_md_get_size( ctx->md_info ); in mbedtls_pkcs5_pbkdf2_hmac()
Dpkcs12.c254 hlen = mbedtls_md_get_size( md_info ); in mbedtls_pkcs12_derivation()
Decjpake.c237 mbedtls_md_get_size( md_info ) ) ); in ecjpake_hash()
768 *olen = mbedtls_md_get_size( ctx->md_info ); in mbedtls_ecjpake_derive_secret()
Dpsa_crypto_rsa.c344 if( mbedtls_md_get_size( md_info ) != hash_length ) in psa_rsa_decode_md_type()
Dconstant_time.c469 const size_t hash_size = mbedtls_md_get_size( ctx->md_info ); in mbedtls_ct_hmac()
Dpk.c244 *hash_len = mbedtls_md_get_size( md_info ); in pk_hashlen_helper()
Dmd.c788 unsigned char mbedtls_md_get_size( const mbedtls_md_info_t *md_info ) in mbedtls_md_get_size() function
Dssl_tls13_generic.c451 rsassa_pss_options.expected_salt_len = mbedtls_md_get_size( md_info ); in ssl_tls13_parse_certificate_verify()
Dssl_tls.c482 md_len = mbedtls_md_get_size( md_info ); in tls_prf_generic()
866 mac_key_len = mbedtls_md_get_size( md_info ); in ssl_tls12_populate_transform()
1809 digest_len = mbedtls_md_get_size( digest_info ); in ssl_check_peer_crt_unchanged()
5065 if( session->peer_cert_digest_len != mbedtls_md_get_size( md_info ) ) in ssl_session_load_tls12()
7038 *hashlen = mbedtls_md_get_size( md_info ); in mbedtls_ssl_get_key_exchange_md_tls1_2()
/third_party/mbedtls/tests/suites/
Dtest_suite_md.function51 TEST_ASSERT( mbedtls_md_get_size( NULL ) == 0 );
117 TEST_ASSERT( mbedtls_md_get_size( md_info ) == (unsigned char) md_size );
149 mbedtls_md_get_size( md_info ),
172 mbedtls_md_get_size( md_info ),
214 mbedtls_md_get_size( md_info ),
223 mbedtls_md_get_size( md_info ),
263 mbedtls_md_get_size( md_info ),
272 mbedtls_md_get_size( md_info ),
370 mbedtls_md_get_size( md_info ),
Dtest_suite_pkcs1_v21.function163 digest, mbedtls_md_get_size( md_info ), hash_result,
176 digest, mbedtls_md_get_size( md_info ), hash_result,
218 …TEST_ASSERT( mbedtls_rsa_pkcs1_verify( &ctx, digest, mbedtls_md_get_size( md_info ), hash_result, …
260 hash_len = mbedtls_md_get_size( md_info );
Dtest_suite_hkdf.function46 output_prk_len = mbedtls_md_get_size( md );
86 TEST_ASSERT( prk_len == mbedtls_md_get_size( md ) );
Dtest_suite_hmac_drbg.function53 if( mbedtls_md_get_size( md_info ) <= 20 )
55 else if( mbedtls_md_get_size( md_info ) <= 28 )
Dtest_suite_pkcs1_v15.function307 digest, mbedtls_md_get_size( md_info ), hash_result,
351 …TEST_ASSERT( mbedtls_rsa_pkcs1_verify( &ctx, digest, mbedtls_md_get_size( md_info ), hash_result, …
Dtest_suite_ecdsa.function166 hlen = mbedtls_md_get_size( md_info );
396 hlen = mbedtls_md_get_size( md_info );
Dtest_suite_x509write.function57 csr.sig_md, hash, mbedtls_md_get_size( md_info ),
Dtest_suite_pk.function458 hash_len = mbedtls_md_get_size( md_info );
547 hlen = mbedtls_md_get_size( md_info );
Dtest_suite_ssl.function1274 maclen = mbedtls_md_get_size( md_info );
3809 size_t const md_size = mbedtls_md_get_size( md_info );
3839 size_t const md_size = mbedtls_md_get_size( md_info );
3870 size_t const md_size = mbedtls_md_get_size( md_info );
3902 size_t const md_size = mbedtls_md_get_size( md_info );
3929 size_t const md_size = mbedtls_md_get_size( md_info );
4675 out_len = mbedtls_md_get_size( md_info );
/third_party/mbedtls/include/mbedtls/
Dmd.h224 unsigned char mbedtls_md_get_size( const mbedtls_md_info_t *md_info );

12