Home
last modified time | relevance | path

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

/mbedtls-3.4.0/library/
Dssl_tls13_keys.c305 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 …]
Dpem.c163 PSA_HASH_LENGTH( PSA_ALG_MD5 ), in pem_pbkdf1()
199 PSA_HASH_LENGTH( PSA_ALG_MD5 ), in pem_pbkdf1()
Dpsa_crypto_hash.c281 size_t actual_hash_length = PSA_HASH_LENGTH( operation->alg ); in mbedtls_psa_hash_finish()
Dssl_tls13_client.c850 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()
Dpkcs12.c272 size_t i, out_len, out_size = PSA_HASH_LENGTH( alg ); in calculate_hashes()
Dpsa_crypto.c4257 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()
Dpsa_crypto_mac.c50 size_t hash_size = PSA_HASH_LENGTH( hash_alg ); in psa_hmac_setup_internal()
Drsa.c1098 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()
Dconstant_time.c479 const size_t hash_size = PSA_HASH_LENGTH( hash_alg ); in mbedtls_ct_hmac()
Decjpake.c70 size_t out_size = PSA_HASH_LENGTH( alg ); in mbedtls_ecjpake_compute_hash()
Dssl_tls13_generic.c263 rsassa_pss_options.expected_salt_len = PSA_HASH_LENGTH( hash_alg ); in ssl_tls13_parse_certificate_verify()
Dssl_tls13_server.c2712 hash_length = PSA_HASH_LENGTH( psa_hash_alg ); in ssl_tls13_prepare_new_session_ticket()
Dssl_tls.c8192 mac_key_len = PSA_HASH_LENGTH(mac_alg); in ssl_tls12_populate_transform()
/mbedtls-3.4.0/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 : \
/mbedtls-3.4.0/tests/suites/
Dtest_suite_psa_crypto_driver_wrappers.function1879 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 …]
Dtest_suite_constant_time_hmac.function42 out_len = PSA_HASH_LENGTH( alg );
Dtest_suite_psa_crypto.function2661 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 );
Dtest_suite_psa_crypto_metadata.function289 TEST_EQUAL( length, PSA_HASH_LENGTH( alg ) );
Dtest_suite_psa_crypto.data5746 …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 …]
Dtest_suite_ssl.function4392 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 );
Dtest_suite_pk.function1372 size_t hash_len = PSA_HASH_LENGTH( psa_md_alg );
/mbedtls-3.4.0/tests/src/
Dpsa_exercise_key.c334 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/
Dgetting_started.md448 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…