/third_party/mbedtls/library/ |
D | ssl_tls13_keys.c | 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 [all …]
|
D | ssl_tls13_keys.h | 124 psa_algorithm_t hash_alg, 163 psa_algorithm_t hash_alg, 210 psa_algorithm_t hash_alg, 261 psa_algorithm_t hash_alg, 307 psa_algorithm_t hash_alg, 358 psa_algorithm_t hash_alg, 389 psa_algorithm_t hash_alg, 463 psa_algorithm_t hash_alg, 493 const psa_algorithm_t hash_alg,
|
D | psa_crypto_mac.c | 46 psa_algorithm_t hash_alg) in psa_hmac_setup_internal() argument 50 size_t hash_size = PSA_HASH_LENGTH(hash_alg); in psa_hmac_setup_internal() 51 size_t block_size = PSA_HASH_BLOCK_LENGTH(hash_alg); in psa_hmac_setup_internal() 54 hmac->alg = hash_alg; in psa_hmac_setup_internal() 73 status = psa_hash_compute(hash_alg, key, key_length, in psa_hmac_setup_internal() 101 status = psa_hash_setup(&hmac->hash_ctx, hash_alg); in psa_hmac_setup_internal() 128 psa_algorithm_t hash_alg = hmac->alg; in psa_hmac_finish_internal() local 130 size_t block_size = PSA_HASH_BLOCK_LENGTH(hash_alg); in psa_hmac_finish_internal() 139 status = psa_hash_setup(&hmac->hash_ctx, hash_alg); in psa_hmac_finish_internal()
|
D | ssl_tls13_client.c | 704 psa_algorithm_t *hash_alg, in ssl_tls13_ticket_get_identity() argument 714 *hash_alg = ssl_tls13_get_ciphersuite_hash_alg(session->ciphersuite); in ssl_tls13_ticket_get_identity() 722 psa_algorithm_t *hash_alg, in ssl_tls13_ticket_get_psk() argument 733 *hash_alg = ssl_tls13_get_ciphersuite_hash_alg(session->ciphersuite); in ssl_tls13_ticket_get_psk() 743 psa_algorithm_t *hash_alg, in ssl_tls13_psk_get_identity() argument 752 *hash_alg = PSA_ALG_SHA_256; in ssl_tls13_psk_get_identity() 760 psa_algorithm_t *hash_alg, in ssl_tls13_psk_get_psk() argument 769 *hash_alg = PSA_ALG_SHA_256; in ssl_tls13_psk_get_psk() 826 psa_algorithm_t hash_alg, in ssl_tls13_write_binder() argument 838 binder_len = PSA_HASH_LENGTH(hash_alg); in ssl_tls13_write_binder() [all …]
|
D | constant_time.c | 539 psa_algorithm_t hash_alg = PSA_ALG_HMAC_GET_HASH(mac_alg); in mbedtls_ct_hmac() local 540 const size_t block_size = PSA_HASH_BLOCK_LENGTH(hash_alg); in mbedtls_ct_hmac() 542 const size_t hash_size = PSA_HASH_LENGTH(hash_alg); in mbedtls_ct_hmac() 576 PSA_CHK(psa_hash_setup(&operation, hash_alg)); in mbedtls_ct_hmac() 615 PSA_CHK(psa_hash_setup(&operation, hash_alg)); in mbedtls_ct_hmac()
|
D | psa_crypto_rsa.c | 320 psa_algorithm_t hash_alg = PSA_ALG_SIGN_GET_HASH(alg); in psa_rsa_decode_md_type() local 321 *md_alg = mbedtls_hash_info_md_from_psa(hash_alg); in psa_rsa_decode_md_type() 529 psa_algorithm_t hash_alg = PSA_ALG_RSA_OAEP_GET_HASH(alg); in psa_rsa_oaep_set_padding_mode() local 530 mbedtls_md_type_t md_alg = mbedtls_hash_info_md_from_psa(hash_alg); in psa_rsa_oaep_set_padding_mode()
|
D | psa_crypto.c | 129 int psa_can_do_hash(psa_algorithm_t hash_alg) in psa_can_do_hash() argument 131 (void) hash_alg; in psa_can_do_hash() 3568 psa_algorithm_t hash_alg = PSA_ALG_SIGN_GET_HASH(alg); in mbedtls_psa_sign_hash_start() local 3569 operation->md_alg = mbedtls_hash_info_md_from_psa(hash_alg); in mbedtls_psa_sign_hash_start() 4987 psa_algorithm_t hash_alg, in psa_key_derivation_start_hmac() argument 4998 operation->mac_size = PSA_HASH_LENGTH(hash_alg); in psa_key_derivation_start_hmac() 5003 PSA_ALG_HMAC(hash_alg)); in psa_key_derivation_start_hmac() 5121 psa_algorithm_t hash_alg = PSA_ALG_HKDF_GET_HASH(kdf_alg); in psa_key_derivation_hkdf_read() local 5122 uint8_t hash_length = PSA_HASH_LENGTH(hash_alg); in psa_key_derivation_hkdf_read() 5168 hash_alg, in psa_key_derivation_hkdf_read() [all …]
|
/third_party/mbedtls/include/psa/ |
D | crypto_values.h | 989 #define PSA_ALG_HMAC(hash_alg) \ argument 990 (PSA_ALG_HMAC_BASE | ((hash_alg) & PSA_ALG_HASH_MASK)) 1402 #define PSA_ALG_RSA_PKCS1V15_SIGN(hash_alg) \ argument 1403 (PSA_ALG_RSA_PKCS1V15_SIGN_BASE | ((hash_alg) & PSA_ALG_HASH_MASK)) 1436 #define PSA_ALG_RSA_PSS(hash_alg) \ argument 1437 (PSA_ALG_RSA_PSS_BASE | ((hash_alg) & PSA_ALG_HASH_MASK)) 1454 #define PSA_ALG_RSA_PSS_ANY_SALT(hash_alg) \ argument 1455 (PSA_ALG_RSA_PSS_ANY_SALT_BASE | ((hash_alg) & PSA_ALG_HASH_MASK)) 1525 #define PSA_ALG_ECDSA(hash_alg) \ argument 1526 (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))
|
/third_party/openssl/crypto/ess/ |
D | ess_lib.c | 20 static ESS_CERT_ID_V2 *ESS_CERT_ID_V2_new_init(const EVP_MD *hash_alg, 99 ESS_SIGNING_CERT_V2 *OSSL_ESS_signing_cert_v2_new_init(const EVP_MD *hash_alg, in OSSL_ESS_signing_cert_v2_new_init() argument 111 cid = ESS_CERT_ID_V2_new_init(hash_alg, signcert, set_issuer_serial); in OSSL_ESS_signing_cert_v2_new_init() 121 if ((cid = ESS_CERT_ID_V2_new_init(hash_alg, cert, 1)) == NULL) in OSSL_ESS_signing_cert_v2_new_init() 136 static ESS_CERT_ID_V2 *ESS_CERT_ID_V2_new_init(const EVP_MD *hash_alg, in ESS_CERT_ID_V2_new_init() argument 151 if (!EVP_MD_is_a(hash_alg, SN_sha256)) { in ESS_CERT_ID_V2_new_init() 155 X509_ALGOR_set_md(alg, hash_alg); in ESS_CERT_ID_V2_new_init() 158 cid->hash_alg = alg; in ESS_CERT_ID_V2_new_init() 161 cid->hash_alg = NULL; in ESS_CERT_ID_V2_new_init() 164 if (!X509_digest(cert, hash_alg, hash, &hash_len)) in ESS_CERT_ID_V2_new_init() [all …]
|
/third_party/node/deps/openssl/openssl/crypto/ess/ |
D | ess_lib.c | 20 static ESS_CERT_ID_V2 *ESS_CERT_ID_V2_new_init(const EVP_MD *hash_alg, 99 ESS_SIGNING_CERT_V2 *OSSL_ESS_signing_cert_v2_new_init(const EVP_MD *hash_alg, in OSSL_ESS_signing_cert_v2_new_init() argument 111 cid = ESS_CERT_ID_V2_new_init(hash_alg, signcert, set_issuer_serial); in OSSL_ESS_signing_cert_v2_new_init() 121 if ((cid = ESS_CERT_ID_V2_new_init(hash_alg, cert, 1)) == NULL) in OSSL_ESS_signing_cert_v2_new_init() 136 static ESS_CERT_ID_V2 *ESS_CERT_ID_V2_new_init(const EVP_MD *hash_alg, in ESS_CERT_ID_V2_new_init() argument 151 if (!EVP_MD_is_a(hash_alg, SN_sha256)) { in ESS_CERT_ID_V2_new_init() 155 X509_ALGOR_set_md(alg, hash_alg); in ESS_CERT_ID_V2_new_init() 158 cid->hash_alg = alg; in ESS_CERT_ID_V2_new_init() 161 cid->hash_alg = NULL; in ESS_CERT_ID_V2_new_init() 164 if (!X509_digest(cert, hash_alg, hash, &hash_len)) in ESS_CERT_ID_V2_new_init() [all …]
|
/third_party/fsverity-utils/lib/ |
D | compute_digest.c | 241 const struct fsverity_hash_alg *hash_alg; in libfsverity_compute_digest() local 282 hash_alg = libfsverity_find_hash_alg_by_num(alg_num); in libfsverity_compute_digest() 283 if (!hash_alg) { in libfsverity_compute_digest() 288 if (block_size < 2 * hash_alg->digest_size) { in libfsverity_compute_digest() 290 block_size, hash_alg->name); in libfsverity_compute_digest() 294 hash = hash_alg->create_ctx(hash_alg); in libfsverity_compute_digest() 319 digest = libfsverity_zalloc(sizeof(*digest) + hash_alg->digest_size); in libfsverity_compute_digest() 325 digest->digest_size = hash_alg->digest_size; in libfsverity_compute_digest()
|
D | sign_digest.c | 406 const struct fsverity_hash_alg *hash_alg; in libfsverity_sign_digest() local 426 hash_alg = libfsverity_find_hash_alg_by_num(digest->digest_algorithm); in libfsverity_sign_digest() 427 if (!hash_alg || digest->digest_size != hash_alg->digest_size) { in libfsverity_sign_digest() 441 md = EVP_get_digestbyname(hash_alg->name); in libfsverity_sign_digest() 444 hash_alg->name); in libfsverity_sign_digest()
|
/third_party/mbedtls/tests/suites/ |
D | test_suite_psa_crypto_storage_format.function | 164 psa_algorithm_t hash_alg = 190 (hash_alg == PSA_ALG_MD5 || 191 hash_alg == PSA_ALG_RIPEMD160 || 192 hash_alg == PSA_ALG_SHA_1)) { 197 (hash_alg == PSA_ALG_RIPEMD160 || hash_alg == PSA_ALG_SHA_384)) { 202 (hash_alg == PSA_ALG_RIPEMD160 || hash_alg == PSA_ALG_SHA_384)) { 211 if (is_builtin_calling_md(alg) && !has_builtin_hash(hash_alg)) { 218 (void) hash_alg;
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/ |
D | tlsv1_record.c | 45 rl->hash_alg = CRYPTO_HASH_ALG_HMAC_MD5; in tlsv1_record_set_cipher_suite() 48 rl->hash_alg = CRYPTO_HASH_ALG_HMAC_SHA1; in tlsv1_record_set_cipher_suite() 51 rl->hash_alg = CRYPTO_HASH_ALG_HMAC_SHA256; in tlsv1_record_set_cipher_suite() 207 hmac = crypto_hash_init(rl->hash_alg, rl->write_mac_secret, in tlsv1_record_send() 436 hmac = crypto_hash_init(rl->hash_alg, rl->read_mac_secret, in tlsv1_record_receive()
|
D | pkcs1.c | 202 const struct asn1_oid *hash_alg, in pkcs1_v15_sig_ver() argument 294 if (!asn1_oid_equal(&oid, hash_alg)) { in pkcs1_v15_sig_ver() 297 asn1_oid_to_str(hash_alg, txt2, sizeof(txt2)); in pkcs1_v15_sig_ver()
|
D | pkcs1.h | 26 const struct asn1_oid *hash_alg,
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/ |
D | tlsv1_record.c | 45 rl->hash_alg = CRYPTO_HASH_ALG_HMAC_MD5; in tlsv1_record_set_cipher_suite() 48 rl->hash_alg = CRYPTO_HASH_ALG_HMAC_SHA1; in tlsv1_record_set_cipher_suite() 51 rl->hash_alg = CRYPTO_HASH_ALG_HMAC_SHA256; in tlsv1_record_set_cipher_suite() 207 hmac = crypto_hash_init(rl->hash_alg, rl->write_mac_secret, in tlsv1_record_send() 436 hmac = crypto_hash_init(rl->hash_alg, rl->read_mac_secret, in tlsv1_record_receive()
|
D | pkcs1.c | 198 const struct asn1_oid *hash_alg, in pkcs1_v15_sig_ver() argument 294 if (!asn1_oid_equal(&oid, hash_alg)) { in pkcs1_v15_sig_ver() 297 asn1_oid_to_str(hash_alg, txt2, sizeof(txt2)); in pkcs1_v15_sig_ver()
|
D | pkcs1.h | 26 const struct asn1_oid *hash_alg,
|
/third_party/mbedtls/tests/src/ |
D | psa_exercise_key.c | 303 psa_algorithm_t hash_alg = PSA_ALG_SIGN_GET_HASH(alg); in exercise_signature_key() local 306 if (PSA_ALG_IS_SIGN_HASH(alg) && hash_alg == PSA_ALG_ANY_HASH) { in exercise_signature_key() 308 hash_alg = KNOWN_SUPPORTED_HASH_ALG; in exercise_signature_key() 309 alg ^= PSA_ALG_ANY_HASH ^ hash_alg; in exercise_signature_key() 318 if (hash_alg != 0) { in exercise_signature_key() 319 payload_length = PSA_HASH_LENGTH(hash_alg); in exercise_signature_key() 629 psa_algorithm_t hash_alg = PSA_ALG_HKDF_GET_HASH(kdf_alg); in exercise_key_agreement_key() local 631 if (PSA_BITS_TO_BYTES(key_bits) != PSA_HASH_LENGTH(hash_alg)) { in exercise_key_agreement_key()
|
/third_party/openssl/crypto/ct/ |
D | ct_sct.c | 128 sct->hash_alg = TLSEXT_hash_sha256; in SCT_set_signature_nid() 133 sct->hash_alg = TLSEXT_hash_sha256; in SCT_set_signature_nid() 219 if (sct->hash_alg == TLSEXT_hash_sha256) { in SCT_get_signature_nid()
|
/third_party/node/deps/openssl/openssl/crypto/ct/ |
D | ct_sct.c | 128 sct->hash_alg = TLSEXT_hash_sha256; in SCT_set_signature_nid() 133 sct->hash_alg = TLSEXT_hash_sha256; in SCT_set_signature_nid() 219 if (sct->hash_alg == TLSEXT_hash_sha256) { in SCT_get_signature_nid()
|
/third_party/node/deps/openssl/openssl/include/crypto/ |
D | ess.h | 59 X509_ALGOR *hash_alg; /* Default: SHA-256 */ member
|
/third_party/openssl/include/crypto/ |
D | ess.h | 59 X509_ALGOR *hash_alg; /* Default: SHA-256 */ member
|