/openthread-3.6.0/third_party/mbedtls/repo/library/ |
D | ssl_tls13_keys.c | 134 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 …]
|
D | ssl_tls13_keys.h | 110 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,
|
D | psa_crypto_mac.c | 45 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()
|
D | psa_crypto.c | 3071 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 …]
|
D | x509write_csr.c | 153 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()
|
D | pk.c | 595 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()
|
D | psa_crypto_ecp.c | 369 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()
|
D | psa_crypto_rsa.c | 326 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()
|
D | x509_crt.c | 2440 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()
|
D | ssl_tls.c | 1651 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/ |
D | crypto_values.h | 883 #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 …]
|
D | crypto_extra.h | 381 #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/ |
D | psa_exercise_key.c | 307 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/ |
D | pk.h | 888 psa_algorithm_t hash_alg );
|
/openthread-3.6.0/third_party/mbedtls/repo/tests/suites/ |
D | test_suite_psa_crypto_metadata.function | 375 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 );
|
D | test_suite_ssl.function | 3686 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/ |
D | psa_constant_names_generated.c | 57 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()
|
D | psa_constant_names.c | 85 static const char *psa_hash_algorithm_name(psa_algorithm_t hash_alg);
|