/third_party/mbedtls/library/ |
D | ssl_tls13_keys.c | 314 PSA_HASH_LENGTH(hash_alg), &ctx_len); in mbedtls_ssl_tls13_derive_secret() 361 hlen = PSA_HASH_LENGTH(hash_alg); in mbedtls_ssl_tls13_evolve_secret() 414 PSA_HASH_LENGTH(hash_alg)); in mbedtls_ssl_tls13_evolve_secret() 435 size_t const hash_len = PSA_HASH_LENGTH(hash_alg); in mbedtls_ssl_tls13_derive_early_secrets() 491 size_t const hash_len = PSA_HASH_LENGTH(hash_alg); in mbedtls_ssl_tls13_derive_handshake_secrets() 555 size_t const hash_len = PSA_HASH_LENGTH(hash_alg); in mbedtls_ssl_tls13_derive_application_secrets() 628 size_t const hash_len = PSA_HASH_LENGTH(hash_alg); in mbedtls_ssl_tls13_derive_resumption_master_secret() 688 handshake->tls13_master_secrets.app, PSA_HASH_LENGTH(hash_alg)); in ssl_tls13_key_schedule_stage_application() 703 size_t hash_len = PSA_HASH_LENGTH(hash_alg); in ssl_tls13_calc_finished_core() 787 size_t const hash_len = PSA_HASH_LENGTH(hash_alg); in mbedtls_ssl_tls13_calculate_verify_data() [all …]
|
D | pem.c | 195 PSA_HASH_LENGTH(PSA_ALG_MD5), in pem_pbkdf1() 234 PSA_HASH_LENGTH(PSA_ALG_MD5), in pem_pbkdf1()
|
D | psa_crypto_hash.c | 277 size_t actual_hash_length = PSA_HASH_LENGTH(operation->alg); in mbedtls_psa_hash_finish()
|
D | ssl_tls13_client.c | 838 binder_len = PSA_HASH_LENGTH(hash_alg); in ssl_tls13_write_binder() 968 l_binders_len += 1 + PSA_HASH_LENGTH(hash_alg); in mbedtls_ssl_tls13_write_identities_of_pre_shared_key_ext() 982 l_binders_len += 1 + PSA_HASH_LENGTH(hash_alg); in mbedtls_ssl_tls13_write_identities_of_pre_shared_key_ext() 2867 hash_length = PSA_HASH_LENGTH(psa_hash_alg); in ssl_tls13_postprocess_new_session_ticket()
|
D | pkcs12.c | 293 size_t i, out_len, out_size = PSA_HASH_LENGTH(alg); in calculate_hashes()
|
D | psa_crypto_mac.c | 50 size_t hash_size = PSA_HASH_LENGTH(hash_alg); in psa_hmac_setup_internal()
|
D | psa_crypto.c | 4998 operation->mac_size = PSA_HASH_LENGTH(hash_alg); in psa_key_derivation_start_hmac() 5122 uint8_t hash_length = PSA_HASH_LENGTH(hash_alg); in psa_key_derivation_hkdf_read() 5214 uint8_t hash_length = PSA_HASH_LENGTH(hash_alg); in psa_key_derivation_tls12_prf_generate_next_block() 5336 uint8_t hash_length = PSA_HASH_LENGTH(hash_alg); in psa_key_derivation_tls12_prf_read() 5907 size_t hash_size = PSA_HASH_LENGTH(hash_alg); in psa_key_derivation_setup_kdf() 5921 hash_size = PSA_HASH_LENGTH(PSA_ALG_SHA_256); in psa_key_derivation_setup_kdf() 6047 if (data_length != PSA_HASH_LENGTH(hash_alg)) { in psa_hkdf_input() 6093 memcpy(hkdf->output_block, hkdf->prk, PSA_HASH_LENGTH(hash_alg)); in psa_hkdf_input() 6100 hkdf->offset_in_block = PSA_HASH_LENGTH(hash_alg); in psa_hkdf_input()
|
D | rsa.c | 1115 hlen = PSA_HASH_LENGTH(alg); in mgf_mask() 1234 size_t out_size = PSA_HASH_LENGTH(alg); in hash_mprime() 1285 size_t out_size = PSA_HASH_LENGTH(alg); in compute_hash()
|
D | constant_time.c | 542 const size_t hash_size = PSA_HASH_LENGTH(hash_alg); in mbedtls_ct_hmac()
|
D | ssl_tls13_generic.c | 257 rsassa_pss_options.expected_salt_len = PSA_HASH_LENGTH(hash_alg); in ssl_tls13_parse_certificate_verify()
|
D | ecjpake.c | 75 size_t out_size = PSA_HASH_LENGTH(alg); in mbedtls_ecjpake_compute_hash()
|
D | ssl_tls13_server.c | 2724 hash_length = PSA_HASH_LENGTH(psa_hash_alg); in ssl_tls13_prepare_new_session_ticket()
|
D | ssl_tls.c | 8437 mac_key_len = PSA_HASH_LENGTH(mac_alg); in ssl_tls12_populate_transform()
|
/third_party/mbedtls/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 : \
|
/third_party/mbedtls/tests/suites/ |
D | test_suite_constant_time_hmac.function | 42 out_len = PSA_HASH_LENGTH(alg);
|
D | test_suite_psa_crypto_driver_wrappers.function | 2248 ASSERT_ALLOC(output, PSA_HASH_LENGTH(alg)); 2251 output, PSA_HASH_LENGTH(alg), 2281 ASSERT_ALLOC(output, PSA_HASH_LENGTH(alg)); 2297 output, PSA_HASH_LENGTH(alg), 2326 ASSERT_ALLOC(output, PSA_HASH_LENGTH(alg)); 2352 output, PSA_HASH_LENGTH(alg), 2381 ASSERT_ALLOC(output, PSA_HASH_LENGTH(alg)); 2388 TEST_EQUAL(psa_hash_finish(&operation, output, PSA_HASH_LENGTH(alg), 2403 output, PSA_HASH_LENGTH(alg), 2435 ASSERT_ALLOC(output, PSA_HASH_LENGTH(alg)); [all …]
|
D | test_suite_ssl.function | 1797 size_t const hash_len = PSA_HASH_LENGTH(alg); 1830 size_t const hash_len = PSA_HASH_LENGTH(alg); 1864 size_t const hash_len = PSA_HASH_LENGTH(alg); 1899 size_t const hash_len = PSA_HASH_LENGTH(alg); 1929 size_t const hash_len = 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 | 5957 …UT_INFO:"f0f1f2f3f4f5f6f7f8f9":PSA_SUCCESS:0:"":PSA_SUCCESS:"":255 * PSA_HASH_LENGTH(PSA_ALG_SHA_2… 5961 …A_KEY_DERIVATION_INPUT_INFO:"":PSA_SUCCESS:0:"":PSA_SUCCESS:"":255 * PSA_HASH_LENGTH(PSA_ALG_SHA_1… 5965 …f4f5f6f7f8f9":PSA_SUCCESS:0:"":PSA_SUCCESS:0:"":PSA_SUCCESS:"":255 * PSA_HASH_LENGTH(PSA_ALG_SHA_2… 5969 …f4f5f6f7f8f9":PSA_SUCCESS:0:"":PSA_SUCCESS:0:"":PSA_SUCCESS:"":255 * PSA_HASH_LENGTH(PSA_ALG_SHA_1… 5973 derive_set_capacity:PSA_ALG_HKDF(PSA_ALG_SHA_256):255 * PSA_HASH_LENGTH(PSA_ALG_SHA_256) + 1:PSA_ER… 5977 derive_set_capacity:PSA_ALG_HKDF(PSA_ALG_SHA_1):255 * PSA_HASH_LENGTH(PSA_ALG_SHA_1) + 1:PSA_ERROR_… 5981 derive_set_capacity:PSA_ALG_HKDF_EXTRACT(PSA_ALG_SHA_256):PSA_HASH_LENGTH(PSA_ALG_SHA_256) + 1:PSA_… 5985 derive_set_capacity:PSA_ALG_HKDF_EXTRACT(PSA_ALG_SHA_1):PSA_HASH_LENGTH(PSA_ALG_SHA_1) + 1:PSA_ERRO… 5989 derive_set_capacity:PSA_ALG_HKDF_EXPAND(PSA_ALG_SHA_256):255 * PSA_HASH_LENGTH(PSA_ALG_SHA_256) + 1… 5993 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_psa_crypto.function | 2608 output_size = PSA_HASH_LENGTH(alg); 2740 output, PSA_HASH_LENGTH(alg), 2742 TEST_EQUAL(output_length, PSA_HASH_LENGTH(alg)); 2750 PSA_HASH_LENGTH(alg), 2752 TEST_EQUAL(output_length, PSA_HASH_LENGTH(alg)); 2760 TEST_EQUAL(output_length, PSA_HASH_LENGTH(alg)); 2769 TEST_EQUAL(output_length, PSA_HASH_LENGTH(alg)); 2946 size_t expected_size = PSA_HASH_LENGTH(alg); 2980 size_t expected_size = PSA_HASH_LENGTH(alg);
|
D | test_suite_pk.function | 1386 size_t hash_len = PSA_HASH_LENGTH(psa_md_alg);
|
/third_party/mbedtls/tests/src/ |
D | psa_exercise_key.c | 319 payload_length = PSA_HASH_LENGTH(hash_alg); in exercise_signature_key() 631 if (PSA_BITS_TO_BYTES(key_bits) != PSA_HASH_LENGTH(hash_alg)) { in exercise_key_agreement_key()
|