Home
last modified time | relevance | path

Searched refs:PSA_HASH_LENGTH (Results 1 – 22 of 22) sorted by relevance

/third_party/mbedtls/library/
Dssl_tls13_keys.c314 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 …]
Dpem.c195 PSA_HASH_LENGTH(PSA_ALG_MD5), in pem_pbkdf1()
234 PSA_HASH_LENGTH(PSA_ALG_MD5), in pem_pbkdf1()
Dpsa_crypto_hash.c277 size_t actual_hash_length = PSA_HASH_LENGTH(operation->alg); in mbedtls_psa_hash_finish()
Dssl_tls13_client.c838 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()
Dpkcs12.c293 size_t i, out_len, out_size = PSA_HASH_LENGTH(alg); in calculate_hashes()
Dpsa_crypto_mac.c50 size_t hash_size = PSA_HASH_LENGTH(hash_alg); in psa_hmac_setup_internal()
Dpsa_crypto.c4998 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()
Drsa.c1115 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()
Dconstant_time.c542 const size_t hash_size = PSA_HASH_LENGTH(hash_alg); in mbedtls_ct_hmac()
Dssl_tls13_generic.c257 rsassa_pss_options.expected_salt_len = PSA_HASH_LENGTH(hash_alg); in ssl_tls13_parse_certificate_verify()
Decjpake.c75 size_t out_size = PSA_HASH_LENGTH(alg); in mbedtls_ecjpake_compute_hash()
Dssl_tls13_server.c2724 hash_length = PSA_HASH_LENGTH(psa_hash_alg); in ssl_tls13_prepare_new_session_ticket()
Dssl_tls.c8437 mac_key_len = PSA_HASH_LENGTH(mac_alg); in ssl_tls12_populate_transform()
/third_party/mbedtls/include/psa/
Dcrypto_sizes.h65 #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/
Dtest_suite_constant_time_hmac.function42 out_len = PSA_HASH_LENGTH(alg);
Dtest_suite_psa_crypto_driver_wrappers.function2248 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 …]
Dtest_suite_ssl.function1797 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);
Dtest_suite_psa_crypto_metadata.function289 TEST_EQUAL(length, PSA_HASH_LENGTH(alg));
Dtest_suite_psa_crypto.data5957 …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 …]
Dtest_suite_psa_crypto.function2608 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);
Dtest_suite_pk.function1386 size_t hash_len = PSA_HASH_LENGTH(psa_md_alg);
/third_party/mbedtls/tests/src/
Dpsa_exercise_key.c319 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()