/mbedtls-3.4.0/library/ |
D | ssl_tls13_keys.c | 305 PSA_HASH_LENGTH( hash_alg ), &ctx_len ); in mbedtls_ssl_tls13_derive_secret() 355 hlen = PSA_HASH_LENGTH( hash_alg ); in mbedtls_ssl_tls13_evolve_secret() 408 PSA_HASH_LENGTH( hash_alg ) ); in mbedtls_ssl_tls13_evolve_secret() 428 size_t const hash_len = PSA_HASH_LENGTH( hash_alg ); in mbedtls_ssl_tls13_derive_early_secrets() 481 size_t const hash_len = PSA_HASH_LENGTH( hash_alg ); in mbedtls_ssl_tls13_derive_handshake_secrets() 542 size_t const hash_len = PSA_HASH_LENGTH( hash_alg ); in mbedtls_ssl_tls13_derive_application_secrets() 611 size_t const hash_len = PSA_HASH_LENGTH( hash_alg ); in mbedtls_ssl_tls13_derive_resumption_master_secret() 653 handshake->tls13_master_secrets.app, PSA_HASH_LENGTH( hash_alg ) ); in mbedtls_ssl_tls13_key_schedule_stage_application() 668 size_t hash_len = PSA_HASH_LENGTH( hash_alg ); in ssl_tls13_calc_finished_core() 750 size_t const hash_len = PSA_HASH_LENGTH( hash_alg ); in mbedtls_ssl_tls13_calculate_verify_data() [all …]
|
D | pem.c | 163 PSA_HASH_LENGTH( PSA_ALG_MD5 ), in pem_pbkdf1() 199 PSA_HASH_LENGTH( PSA_ALG_MD5 ), in pem_pbkdf1()
|
D | psa_crypto_hash.c | 281 size_t actual_hash_length = PSA_HASH_LENGTH( operation->alg ); in mbedtls_psa_hash_finish()
|
D | ssl_tls13_client.c | 850 binder_len = PSA_HASH_LENGTH( hash_alg ); in ssl_tls13_write_binder() 965 l_binders_len += 1 + PSA_HASH_LENGTH( hash_alg ); in mbedtls_ssl_tls13_write_identities_of_pre_shared_key_ext() 979 l_binders_len += 1 + PSA_HASH_LENGTH( hash_alg ); in mbedtls_ssl_tls13_write_identities_of_pre_shared_key_ext() 2724 hash_length = PSA_HASH_LENGTH( psa_hash_alg ); in ssl_tls13_postprocess_new_session_ticket()
|
D | pkcs12.c | 272 size_t i, out_len, out_size = PSA_HASH_LENGTH( alg ); in calculate_hashes()
|
D | psa_crypto.c | 4257 operation->mac_size = PSA_HASH_LENGTH( hash_alg ); in psa_key_derivation_start_hmac() 4391 uint8_t hash_length = PSA_HASH_LENGTH( hash_alg ); in psa_key_derivation_hkdf_read() 4476 uint8_t hash_length = PSA_HASH_LENGTH( hash_alg ); in psa_key_derivation_tls12_prf_generate_next_block() 4588 uint8_t hash_length = PSA_HASH_LENGTH( hash_alg ); in psa_key_derivation_tls12_prf_read() 5143 size_t hash_size = PSA_HASH_LENGTH( hash_alg ); in psa_key_derivation_setup_kdf() 5158 hash_size = PSA_HASH_LENGTH( PSA_ALG_SHA_256 ); in psa_key_derivation_setup_kdf() 5269 if( data_length != PSA_HASH_LENGTH( hash_alg ) ) in psa_hkdf_input() 5312 memcpy( hkdf->output_block, hkdf->prk, PSA_HASH_LENGTH( hash_alg ) ); in psa_hkdf_input() 5320 hkdf->offset_in_block = PSA_HASH_LENGTH( hash_alg ); in psa_hkdf_input()
|
D | psa_crypto_mac.c | 50 size_t hash_size = PSA_HASH_LENGTH( hash_alg ); in psa_hmac_setup_internal()
|
D | rsa.c | 1098 hlen = PSA_HASH_LENGTH( alg ); in mgf_mask() 1201 size_t out_size = PSA_HASH_LENGTH( alg ); in hash_mprime() 1246 size_t out_size = PSA_HASH_LENGTH( alg ); in compute_hash()
|
D | constant_time.c | 479 const size_t hash_size = PSA_HASH_LENGTH( hash_alg ); in mbedtls_ct_hmac()
|
D | ecjpake.c | 70 size_t out_size = PSA_HASH_LENGTH( alg ); in mbedtls_ecjpake_compute_hash()
|
D | ssl_tls13_generic.c | 263 rsassa_pss_options.expected_salt_len = PSA_HASH_LENGTH( hash_alg ); in ssl_tls13_parse_certificate_verify()
|
D | ssl_tls13_server.c | 2712 hash_length = PSA_HASH_LENGTH( psa_hash_alg ); in ssl_tls13_prepare_new_session_ticket()
|
D | ssl_tls.c | 8192 mac_key_len = PSA_HASH_LENGTH(mac_alg); in ssl_tls12_populate_transform()
|
/mbedtls-3.4.0/include/psa/ |
D | crypto_sizes.h | 65 #define PSA_HASH_LENGTH(alg) \ macro 277 PSA_ALG_IS_HMAC(alg) ? PSA_HASH_LENGTH(PSA_ALG_HMAC_GET_HASH(alg)) : \ 554 2 * PSA_HASH_LENGTH(PSA_ALG_RSA_OAEP_GET_HASH(alg)) + 1 : \
|
/mbedtls-3.4.0/tests/suites/ |
D | test_suite_psa_crypto_driver_wrappers.function | 1879 ASSERT_ALLOC( output, PSA_HASH_LENGTH( alg ) ); 1882 output, PSA_HASH_LENGTH( alg ), 1913 ASSERT_ALLOC( output, PSA_HASH_LENGTH( alg ) ); 1930 output, PSA_HASH_LENGTH( alg ), 1959 ASSERT_ALLOC( output, PSA_HASH_LENGTH( alg ) ); 1986 output, PSA_HASH_LENGTH( alg ), 2015 ASSERT_ALLOC( output, PSA_HASH_LENGTH( alg ) ); 2022 TEST_EQUAL( psa_hash_finish( &operation, output, PSA_HASH_LENGTH( alg ), 2037 output, PSA_HASH_LENGTH( alg ), 2068 ASSERT_ALLOC( output, PSA_HASH_LENGTH( alg ) ); [all …]
|
D | test_suite_constant_time_hmac.function | 42 out_len = PSA_HASH_LENGTH( alg );
|
D | test_suite_psa_crypto.function | 2661 output_size = PSA_HASH_LENGTH( alg ); 2803 output, PSA_HASH_LENGTH( alg ), 2805 TEST_EQUAL( output_length, PSA_HASH_LENGTH( alg ) ); 2813 PSA_HASH_LENGTH( alg ), 2815 TEST_EQUAL( output_length, PSA_HASH_LENGTH( alg ) ); 2823 TEST_EQUAL( output_length, PSA_HASH_LENGTH( alg ) ); 2832 TEST_EQUAL( output_length, PSA_HASH_LENGTH( alg ) ); 3008 size_t expected_size = PSA_HASH_LENGTH( alg ); 3042 size_t expected_size = PSA_HASH_LENGTH( alg );
|
D | test_suite_psa_crypto_metadata.function | 289 TEST_EQUAL( length, PSA_HASH_LENGTH( alg ) );
|
D | test_suite_psa_crypto.data | 5746 …UT_INFO:"f0f1f2f3f4f5f6f7f8f9":PSA_SUCCESS:0:"":PSA_SUCCESS:"":255 * PSA_HASH_LENGTH(PSA_ALG_SHA_2… 5750 …A_KEY_DERIVATION_INPUT_INFO:"":PSA_SUCCESS:0:"":PSA_SUCCESS:"":255 * PSA_HASH_LENGTH(PSA_ALG_SHA_1… 5754 …f4f5f6f7f8f9":PSA_SUCCESS:0:"":PSA_SUCCESS:0:"":PSA_SUCCESS:"":255 * PSA_HASH_LENGTH(PSA_ALG_SHA_2… 5758 …f4f5f6f7f8f9":PSA_SUCCESS:0:"":PSA_SUCCESS:0:"":PSA_SUCCESS:"":255 * PSA_HASH_LENGTH(PSA_ALG_SHA_1… 5762 derive_set_capacity:PSA_ALG_HKDF(PSA_ALG_SHA_256):255 * PSA_HASH_LENGTH(PSA_ALG_SHA_256) + 1:PSA_ER… 5766 derive_set_capacity:PSA_ALG_HKDF(PSA_ALG_SHA_1):255 * PSA_HASH_LENGTH(PSA_ALG_SHA_1) + 1:PSA_ERROR_… 5770 derive_set_capacity:PSA_ALG_HKDF_EXTRACT(PSA_ALG_SHA_256):PSA_HASH_LENGTH(PSA_ALG_SHA_256) + 1:PSA_… 5774 derive_set_capacity:PSA_ALG_HKDF_EXTRACT(PSA_ALG_SHA_1):PSA_HASH_LENGTH(PSA_ALG_SHA_1) + 1:PSA_ERRO… 5778 derive_set_capacity:PSA_ALG_HKDF_EXPAND(PSA_ALG_SHA_256):255 * PSA_HASH_LENGTH(PSA_ALG_SHA_256) + 1… 5782 derive_set_capacity:PSA_ALG_HKDF_EXPAND(PSA_ALG_SHA_1):255 * PSA_HASH_LENGTH(PSA_ALG_SHA_1) + 1:PSA… [all …]
|
D | test_suite_ssl.function | 4392 size_t const hash_len = PSA_HASH_LENGTH( alg ); 4425 size_t const hash_len = PSA_HASH_LENGTH( alg ); 4459 size_t const hash_len = PSA_HASH_LENGTH( alg ); 4494 size_t const hash_len = PSA_HASH_LENGTH( alg ); 4524 size_t const hash_len = PSA_HASH_LENGTH( alg );
|
D | test_suite_pk.function | 1372 size_t hash_len = PSA_HASH_LENGTH( psa_md_alg );
|
/mbedtls-3.4.0/tests/src/ |
D | psa_exercise_key.c | 334 payload_length = PSA_HASH_LENGTH( hash_alg ); in exercise_signature_key() 662 if( PSA_BITS_TO_BYTES( key_bits ) != PSA_HASH_LENGTH( hash_alg ) ) in exercise_key_agreement_key()
|
/mbedtls-3.4.0/docs/ |
D | getting_started.md | 448 size_t expected_hash_len = PSA_HASH_LENGTH(alg); 485 The API provides the macro `PSA_HASH_LENGTH`, which returns the expected hash length (in bytes) for…
|