Lines Matching refs:hash_alg

146     psa_algorithm_t hash_alg,  in mbedtls_ssl_tls13_hkdf_expand_label()  argument
176 if (!PSA_ALG_IS_HASH(hash_alg)) { in mbedtls_ssl_tls13_hkdf_expand_label()
186 status = psa_key_derivation_setup(&operation, PSA_ALG_HKDF_EXPAND(hash_alg)); in mbedtls_ssl_tls13_hkdf_expand_label()
227 psa_algorithm_t hash_alg, in ssl_tls13_make_traffic_key() argument
235 hash_alg, in ssl_tls13_make_traffic_key()
245 hash_alg, in ssl_tls13_make_traffic_key()
270 psa_algorithm_t hash_alg, in mbedtls_ssl_tls13_make_traffic_keys() argument
279 hash_alg, client_secret, secret_len, in mbedtls_ssl_tls13_make_traffic_keys()
287 hash_alg, server_secret, secret_len, in mbedtls_ssl_tls13_make_traffic_keys()
301 psa_algorithm_t hash_alg, in mbedtls_ssl_tls13_derive_secret() argument
313 status = psa_hash_compute(hash_alg, ctx, ctx_len, hashed_context, in mbedtls_ssl_tls13_derive_secret()
314 PSA_HASH_LENGTH(hash_alg), &ctx_len); in mbedtls_ssl_tls13_derive_secret()
331 return mbedtls_ssl_tls13_hkdf_expand_label(hash_alg, in mbedtls_ssl_tls13_derive_secret()
340 psa_algorithm_t hash_alg, in mbedtls_ssl_tls13_evolve_secret() argument
357 if (!PSA_ALG_IS_HASH(hash_alg)) { in mbedtls_ssl_tls13_evolve_secret()
361 hlen = PSA_HASH_LENGTH(hash_alg); in mbedtls_ssl_tls13_evolve_secret()
367 hash_alg, in mbedtls_ssl_tls13_evolve_secret()
389 PSA_ALG_HKDF_EXTRACT(hash_alg)); in mbedtls_ssl_tls13_evolve_secret()
414 PSA_HASH_LENGTH(hash_alg)); in mbedtls_ssl_tls13_evolve_secret()
429 psa_algorithm_t hash_alg, in mbedtls_ssl_tls13_derive_early_secrets() argument
435 size_t const hash_len = PSA_HASH_LENGTH(hash_alg); in mbedtls_ssl_tls13_derive_early_secrets()
439 if (!PSA_ALG_IS_HASH(hash_alg)) { in mbedtls_ssl_tls13_derive_early_secrets()
458 ret = mbedtls_ssl_tls13_derive_secret(hash_alg, in mbedtls_ssl_tls13_derive_early_secrets()
470 ret = mbedtls_ssl_tls13_derive_secret(hash_alg, in mbedtls_ssl_tls13_derive_early_secrets()
485 psa_algorithm_t hash_alg, in mbedtls_ssl_tls13_derive_handshake_secrets() argument
491 size_t const hash_len = PSA_HASH_LENGTH(hash_alg); in mbedtls_ssl_tls13_derive_handshake_secrets()
495 if (!PSA_ALG_IS_HASH(hash_alg)) { in mbedtls_ssl_tls13_derive_handshake_secrets()
518 ret = mbedtls_ssl_tls13_derive_secret(hash_alg, in mbedtls_ssl_tls13_derive_handshake_secrets()
534 ret = mbedtls_ssl_tls13_derive_secret(hash_alg, in mbedtls_ssl_tls13_derive_handshake_secrets()
549 psa_algorithm_t hash_alg, in mbedtls_ssl_tls13_derive_application_secrets() argument
555 size_t const hash_len = PSA_HASH_LENGTH(hash_alg); in mbedtls_ssl_tls13_derive_application_secrets()
559 if (!PSA_ALG_IS_HASH(hash_alg)) { in mbedtls_ssl_tls13_derive_application_secrets()
581 ret = mbedtls_ssl_tls13_derive_secret(hash_alg, in mbedtls_ssl_tls13_derive_application_secrets()
592 ret = mbedtls_ssl_tls13_derive_secret(hash_alg, in mbedtls_ssl_tls13_derive_application_secrets()
603 ret = mbedtls_ssl_tls13_derive_secret(hash_alg, in mbedtls_ssl_tls13_derive_application_secrets()
622 psa_algorithm_t hash_alg, in mbedtls_ssl_tls13_derive_resumption_master_secret() argument
628 size_t const hash_len = PSA_HASH_LENGTH(hash_alg); in mbedtls_ssl_tls13_derive_resumption_master_secret()
632 if (!PSA_ALG_IS_HASH(hash_alg)) { in mbedtls_ssl_tls13_derive_resumption_master_secret()
636 ret = mbedtls_ssl_tls13_derive_secret(hash_alg, in mbedtls_ssl_tls13_derive_resumption_master_secret()
672 psa_algorithm_t const hash_alg = mbedtls_hash_info_psa_from_md( in ssl_tls13_key_schedule_stage_application() local
678 ret = mbedtls_ssl_tls13_evolve_secret(hash_alg, in ssl_tls13_key_schedule_stage_application()
688 handshake->tls13_master_secrets.app, PSA_HASH_LENGTH(hash_alg)); in ssl_tls13_key_schedule_stage_application()
694 static int ssl_tls13_calc_finished_core(psa_algorithm_t hash_alg, in ssl_tls13_calc_finished_core() argument
703 size_t hash_len = PSA_HASH_LENGTH(hash_alg); in ssl_tls13_calc_finished_core()
710 if (!PSA_ALG_IS_HASH(hash_alg)) { in ssl_tls13_calc_finished_core()
732 hash_alg, base_key, hash_len, in ssl_tls13_calc_finished_core()
740 alg = PSA_ALG_HMAC(hash_alg); in ssl_tls13_calc_finished_core()
785 psa_algorithm_t hash_alg = mbedtls_hash_info_psa_from_md( in mbedtls_ssl_tls13_calculate_verify_data() local
787 size_t const hash_len = PSA_HASH_LENGTH(hash_alg); in mbedtls_ssl_tls13_calculate_verify_data()
813 ret = ssl_tls13_calc_finished_core(hash_alg, base_key, transcript, dst, actual_len); in mbedtls_ssl_tls13_calculate_verify_data()
829 const psa_algorithm_t hash_alg, in mbedtls_ssl_tls13_create_psk_binder() argument
838 size_t const hash_len = PSA_HASH_LENGTH(hash_alg); in mbedtls_ssl_tls13_create_psk_binder()
848 if (!PSA_ALG_IS_HASH(hash_alg)) { in mbedtls_ssl_tls13_create_psk_binder()
863 ret = mbedtls_ssl_tls13_evolve_secret(hash_alg, in mbedtls_ssl_tls13_create_psk_binder()
876 ret = mbedtls_ssl_tls13_derive_secret(hash_alg, in mbedtls_ssl_tls13_create_psk_binder()
883 ret = mbedtls_ssl_tls13_derive_secret(hash_alg, in mbedtls_ssl_tls13_create_psk_binder()
901 ret = ssl_tls13_calc_finished_core(hash_alg, binder_key, transcript, in mbedtls_ssl_tls13_create_psk_binder()
1128 psa_algorithm_t hash_alg; in ssl_tls13_generate_early_key() local
1149 hash_alg = mbedtls_hash_info_psa_from_md(ciphersuite_info->mac); in ssl_tls13_generate_early_key()
1150 hash_len = PSA_HASH_LENGTH(hash_alg); in ssl_tls13_generate_early_key()
1164 hash_alg, handshake->tls13_master_secrets.early, in ssl_tls13_generate_early_key()
1191 hash_alg, in ssl_tls13_generate_early_key()
1267 psa_algorithm_t hash_alg; in mbedtls_ssl_tls13_key_schedule_stage_early() local
1277 hash_alg = mbedtls_hash_info_psa_from_md(handshake->ciphersuite_info->mac); in mbedtls_ssl_tls13_key_schedule_stage_early()
1289 ret = mbedtls_ssl_tls13_evolve_secret(hash_alg, NULL, psk, psk_len, in mbedtls_ssl_tls13_key_schedule_stage_early()
1302 PSA_HASH_LENGTH(hash_alg)); in mbedtls_ssl_tls13_key_schedule_stage_early()
1328 psa_algorithm_t hash_alg; in ssl_tls13_generate_handshake_keys() local
1349 hash_alg = mbedtls_hash_info_psa_from_md(ciphersuite_info->mac); in ssl_tls13_generate_handshake_keys()
1350 hash_len = PSA_HASH_LENGTH(hash_alg); in ssl_tls13_generate_handshake_keys()
1363 ret = mbedtls_ssl_tls13_derive_handshake_secrets(hash_alg, in ssl_tls13_generate_handshake_keys()
1400 ret = mbedtls_ssl_tls13_make_traffic_keys(hash_alg, in ssl_tls13_generate_handshake_keys()
1453 psa_algorithm_t const hash_alg = mbedtls_hash_info_psa_from_md( in ssl_tls13_key_schedule_stage_handshake() local
1513 ret = mbedtls_ssl_tls13_evolve_secret(hash_alg, in ssl_tls13_key_schedule_stage_handshake()
1524 PSA_HASH_LENGTH(hash_alg)); in ssl_tls13_key_schedule_stage_handshake()
1570 psa_algorithm_t hash_alg; in ssl_tls13_generate_application_keys() local
1589 hash_alg = mbedtls_hash_info_psa_from_md(handshake->ciphersuite_info->mac); in ssl_tls13_generate_application_keys()
1590 hash_len = PSA_HASH_LENGTH(hash_alg); in ssl_tls13_generate_application_keys()
1604 ret = mbedtls_ssl_tls13_derive_application_secrets(hash_alg, in ssl_tls13_generate_application_keys()
1616 ret = mbedtls_ssl_tls13_make_traffic_keys(hash_alg, in ssl_tls13_generate_application_keys()