Home
last modified time | relevance | path

Searched refs:hash_alg (Results 1 – 18 of 18) sorted by relevance

/openthread-3.6.0/third_party/mbedtls/repo/library/
Dssl_tls13_keys.c134 mbedtls_md_type_t hash_alg, in mbedtls_ssl_tls1_3_hkdf_expand_label() argument
164 md = mbedtls_md_info_from_type( hash_alg ); in mbedtls_ssl_tls1_3_hkdf_expand_label()
197 mbedtls_md_type_t hash_alg, in mbedtls_ssl_tls1_3_make_traffic_keys() argument
205 ret = mbedtls_ssl_tls1_3_hkdf_expand_label( hash_alg, in mbedtls_ssl_tls1_3_make_traffic_keys()
213 ret = mbedtls_ssl_tls1_3_hkdf_expand_label( hash_alg, in mbedtls_ssl_tls1_3_make_traffic_keys()
221 ret = mbedtls_ssl_tls1_3_hkdf_expand_label( hash_alg, in mbedtls_ssl_tls1_3_make_traffic_keys()
229 ret = mbedtls_ssl_tls1_3_hkdf_expand_label( hash_alg, in mbedtls_ssl_tls1_3_make_traffic_keys()
244 mbedtls_md_type_t hash_alg, in mbedtls_ssl_tls1_3_derive_secret() argument
255 md = mbedtls_md_info_from_type( hash_alg ); in mbedtls_ssl_tls1_3_derive_secret()
280 return( mbedtls_ssl_tls1_3_hkdf_expand_label( hash_alg, in mbedtls_ssl_tls1_3_derive_secret()
[all …]
Dssl_tls13_keys.h110 mbedtls_md_type_t hash_alg,
146 mbedtls_md_type_t hash_alg,
194 mbedtls_md_type_t hash_alg,
269 mbedtls_md_type_t hash_alg,
Dpsa_crypto_mac.c45 psa_algorithm_t hash_alg ) in psa_hmac_setup_internal() argument
49 size_t hash_size = PSA_HASH_LENGTH( hash_alg ); in psa_hmac_setup_internal()
50 size_t block_size = PSA_HASH_BLOCK_LENGTH( hash_alg ); in psa_hmac_setup_internal()
53 hmac->alg = hash_alg; in psa_hmac_setup_internal()
70 status = psa_hash_compute( hash_alg, key, key_length, in psa_hmac_setup_internal()
94 status = psa_hash_setup( &hmac->hash_ctx, hash_alg ); in psa_hmac_setup_internal()
120 psa_algorithm_t hash_alg = hmac->alg; in psa_hmac_finish_internal() local
122 size_t block_size = PSA_HASH_BLOCK_LENGTH( hash_alg ); in psa_hmac_finish_internal()
130 status = psa_hash_setup( &hmac->hash_ctx, hash_alg ); in psa_hmac_finish_internal()
Dpsa_crypto.c3071 psa_algorithm_t hash_alg = PSA_ALG_RSA_OAEP_GET_HASH( alg ); in psa_rsa_oaep_set_padding_mode() local
3072 const mbedtls_md_info_t *md_info = mbedtls_md_info_from_psa( hash_alg ); in psa_rsa_oaep_set_padding_mode()
3809 psa_algorithm_t hash_alg, in psa_key_derivation_start_hmac() argument
3820 operation->mac_size = PSA_HASH_LENGTH( hash_alg ); in psa_key_derivation_start_hmac()
3825 PSA_ALG_HMAC( hash_alg ) ); in psa_key_derivation_start_hmac()
3935 psa_algorithm_t hash_alg, in psa_key_derivation_hkdf_read() argument
3939 uint8_t hash_length = PSA_HASH_LENGTH( hash_alg ); in psa_key_derivation_hkdf_read()
3972 hash_alg, in psa_key_derivation_hkdf_read()
4013 psa_algorithm_t hash_alg = PSA_ALG_HKDF_GET_HASH( alg ); in psa_key_derivation_tls12_prf_generate_next_block() local
4014 uint8_t hash_length = PSA_HASH_LENGTH( hash_alg ); in psa_key_derivation_tls12_prf_generate_next_block()
[all …]
Dx509write_csr.c153 psa_algorithm_t hash_alg = mbedtls_psa_translate_md( ctx->md_alg ); in x509write_csr_der_internal() local
221 if( psa_hash_setup( &hash_operation, hash_alg ) != PSA_SUCCESS ) in x509write_csr_der_internal()
Dpk.c595 psa_algorithm_t hash_alg ) in mbedtls_pk_wrap_as_opaque() argument
600 ((void) hash_alg); in mbedtls_pk_wrap_as_opaque()
628 psa_set_key_algorithm( &attributes, PSA_ALG_ECDSA(hash_alg) ); in mbedtls_pk_wrap_as_opaque()
Dpsa_crypto_ecp.c369 psa_algorithm_t hash_alg = PSA_ALG_SIGN_GET_HASH( alg ); in mbedtls_psa_ecdsa_sign_hash() local
370 const mbedtls_md_info_t *md_info = mbedtls_md_info_from_psa( hash_alg ); in mbedtls_psa_ecdsa_sign_hash()
Dpsa_crypto_rsa.c326 psa_algorithm_t hash_alg = PSA_ALG_SIGN_GET_HASH( alg ); in psa_rsa_decode_md_type() local
327 const mbedtls_md_info_t *md_info = mbedtls_md_info_from_psa( hash_alg ); in psa_rsa_decode_md_type()
Dx509_crt.c2440 psa_algorithm_t hash_alg = mbedtls_psa_translate_md( child->sig_md ); in x509_crt_check_signature() local
2442 if( psa_hash_setup( &hash_operation, hash_alg ) != PSA_SUCCESS ) in x509_crt_check_signature()
Dssl_tls.c1651 mbedtls_md_type_t hash_alg = handshake->ciphersuite_info->mac; in ssl_compute_master() local
1657 if( hash_alg == MBEDTLS_MD_SHA384 ) in ssl_compute_master()
7576 psa_algorithm_t hash_alg = mbedtls_psa_translate_md( md_alg ); in mbedtls_ssl_get_key_exchange_md_tls1_2() local
7581 hash_alg ) ) != PSA_SUCCESS ) in mbedtls_ssl_get_key_exchange_md_tls1_2()
/openthread-3.6.0/third_party/mbedtls/repo/include/psa/
Dcrypto_values.h883 #define PSA_ALG_HMAC(hash_alg) \ argument
884 (PSA_ALG_HMAC_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
1286 #define PSA_ALG_RSA_PKCS1V15_SIGN(hash_alg) \ argument
1287 (PSA_ALG_RSA_PKCS1V15_SIGN_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
1318 #define PSA_ALG_RSA_PSS(hash_alg) \ argument
1319 (PSA_ALG_RSA_PSS_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
1336 #define PSA_ALG_RSA_PSS_ANY_SALT(hash_alg) \ argument
1337 (PSA_ALG_RSA_PSS_ANY_SALT_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
1407 #define PSA_ALG_ECDSA(hash_alg) \ argument
1408 (PSA_ALG_ECDSA_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
[all …]
Dcrypto_extra.h381 #define PSA_ALG_DSA(hash_alg) \ argument
382 (PSA_ALG_DSA_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
399 #define PSA_ALG_DETERMINISTIC_DSA(hash_alg) \ argument
400 (PSA_ALG_DETERMINISTIC_DSA_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
/openthread-3.6.0/third_party/mbedtls/repo/tests/src/
Dpsa_exercise_key.c307 psa_algorithm_t hash_alg = PSA_ALG_SIGN_GET_HASH( alg ); in exercise_signature_key() local
310 if( PSA_ALG_IS_SIGN_HASH( alg ) && hash_alg == PSA_ALG_ANY_HASH ) in exercise_signature_key()
313 hash_alg = KNOWN_MBEDTLS_SUPPORTED_HASH_ALG; in exercise_signature_key()
314 alg ^= PSA_ALG_ANY_HASH ^ hash_alg; in exercise_signature_key()
323 if( hash_alg != 0 ) in exercise_signature_key()
324 payload_length = PSA_HASH_LENGTH( hash_alg ); in exercise_signature_key()
/openthread-3.6.0/third_party/mbedtls/repo/include/mbedtls/
Dpk.h888 psa_algorithm_t hash_alg );
/openthread-3.6.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_psa_crypto_metadata.function375 psa_algorithm_t hash_alg = PSA_ALG_HMAC_GET_HASH( alg );
380 TEST_ASSERT( PSA_ALG_IS_HASH( hash_alg ) );
381 TEST_EQUAL( PSA_ALG_HMAC( hash_alg ), alg );
392 TEST_EQUAL( PSA_ALG_HMAC_GET_HASH( truncated_alg ), hash_alg );
Dtest_suite_ssl.function3686 void ssl_tls1_3_hkdf_expand_label( int hash_alg,
3712 (mbedtls_md_type_t) hash_alg,
3724 void ssl_tls1_3_traffic_key_generation( int hash_alg,
3744 (mbedtls_md_type_t) hash_alg,
3771 void ssl_tls1_3_derive_secret( int hash_alg,
3798 (mbedtls_md_type_t) hash_alg,
3811 void ssl_tls1_3_key_evolution( int hash_alg,
3819 (mbedtls_md_type_t) hash_alg,
/openthread-3.6.0/third_party/mbedtls/repo/programs/psa/
Dpsa_constant_names_generated.c57 static const char *psa_hash_algorithm_name(psa_algorithm_t hash_alg) in psa_hash_algorithm_name() argument
59 switch (hash_alg) { in psa_hash_algorithm_name()
Dpsa_constant_names.c85 static const char *psa_hash_algorithm_name(psa_algorithm_t hash_alg);