Home
last modified time | relevance | path

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

12345

/third_party/mbedtls/library/
Dssl_tls13_keys.c146 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 …]
Dssl_tls13_keys.h124 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,
Dpsa_crypto_mac.c46 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()
Dssl_tls13_client.c704 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 …]
Dconstant_time.c539 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()
Dpsa_crypto_rsa.c320 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()
Dpsa_crypto.c129 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/
Dcrypto_values.h989 #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 …]
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))
/third_party/openssl/crypto/ess/
Dess_lib.c20 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/
Dess_lib.c20 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/
Dcompute_digest.c241 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()
Dsign_digest.c406 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/
Dtest_suite_psa_crypto_storage_format.function164 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/
Dtlsv1_record.c45 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()
Dpkcs1.c202 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()
Dpkcs1.h26 const struct asn1_oid *hash_alg,
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/
Dtlsv1_record.c45 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()
Dpkcs1.c198 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()
Dpkcs1.h26 const struct asn1_oid *hash_alg,
/third_party/mbedtls/tests/src/
Dpsa_exercise_key.c303 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/
Dct_sct.c128 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/
Dct_sct.c128 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/
Dess.h59 X509_ALGOR *hash_alg; /* Default: SHA-256 */ member
/third_party/openssl/include/crypto/
Dess.h59 X509_ALGOR *hash_alg; /* Default: SHA-256 */ member

12345