/kernel/linux/linux-5.10/drivers/char/tpm/ |
H A D | tpm2-cmd.c | 144 __be16 hash_alg; member 543 __be16 hash_alg; member 558 u16 hash_alg; in tpm2_get_pcr_allocation() local 600 hash_alg = be16_to_cpu(pcr_selection.hash_alg); in tpm2_get_pcr_allocation() 605 chip->allocated_banks[nr_alloc_banks].alg_id = hash_alg; in tpm2_get_pcr_allocation() 614 sizeof_pcr_selection = sizeof(pcr_selection.hash_alg) + in tpm2_get_pcr_allocation()
|
/kernel/linux/linux-5.10/drivers/crypto/bcm/ |
H A D | cipher.h | 100 enum hash_alg alg; 366 u16 (*spu_hash_pad_len)(enum hash_alg hash_alg, 377 u32 (*spu_digest_size)(u32 digest_size, enum hash_alg alg, 393 u32 hash_pad_len, enum hash_alg auth_alg,
|
H A D | spu2.c | 224 * @hash_alg: [in] hash algorithm value from software enumeration 234 spu2_hash_xlate(enum hash_alg hash_alg, enum hash_mode hash_mode, in spu2_hash_xlate() argument 246 switch (hash_alg) { in spu2_hash_xlate() 303 hash_alg, hash_type); in spu2_hash_xlate() 832 * @hash_alg: hash algorithm 841 u16 spu2_hash_pad_len(enum hash_alg hash_alg, enum hash_mode hash_mode, in spu2_hash_pad_len() argument 917 u32 spu2_digest_size(u32 alg_digest_size, enum hash_alg alg, in spu2_digest_size() 1243 enum hash_alg auth_al in spu2_request_pad() [all...] |
/kernel/linux/linux-6.6/drivers/crypto/bcm/ |
H A D | cipher.h | 101 enum hash_alg alg; 364 u16 (*spu_hash_pad_len)(enum hash_alg hash_alg, 375 u32 (*spu_digest_size)(u32 digest_size, enum hash_alg alg, 391 u32 hash_pad_len, enum hash_alg auth_alg,
|
H A D | spu2.c | 224 * @hash_alg: [in] hash algorithm value from software enumeration 234 spu2_hash_xlate(enum hash_alg hash_alg, enum hash_mode hash_mode, in spu2_hash_xlate() argument 246 switch (hash_alg) { in spu2_hash_xlate() 303 hash_alg, hash_type); in spu2_hash_xlate() 835 * @hash_alg: hash algorithm 844 u16 spu2_hash_pad_len(enum hash_alg hash_alg, enum hash_mode hash_mode, in spu2_hash_pad_len() argument 922 u32 spu2_digest_size(u32 alg_digest_size, enum hash_alg alg, in spu2_digest_size() 1246 enum hash_alg auth_al in spu2_request_pad() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/ |
H A 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()
|
H A D | pkcs1.c | 198 const struct asn1_oid *hash_alg, in pkcs1_v15_sig_ver() 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() 196 pkcs1_v15_sig_ver(struct crypto_public_key *pk, const u8 *s, size_t s_len, const struct asn1_oid *hash_alg, const u8 *hash, size_t hash_len) pkcs1_v15_sig_ver() argument
|
H A D | pkcs1.h | 26 const struct asn1_oid *hash_alg,
|
H A D | tlsv1_record.h | 45 enum crypto_hash_alg hash_alg; member
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/ |
H A 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()
|
H A D | pkcs1.c | 202 const struct asn1_oid *hash_alg, in pkcs1_v15_sig_ver() 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() 200 pkcs1_v15_sig_ver(struct crypto_public_key *pk, const u8 *s, size_t s_len, const struct asn1_oid *hash_alg, const u8 *hash, size_t hash_len) pkcs1_v15_sig_ver() argument
|
H A D | pkcs1.h | 26 const struct asn1_oid *hash_alg,
|
/third_party/fsverity-utils/lib/ |
H A 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()
|
/kernel/linux/linux-6.6/drivers/char/tpm/ |
H A D | tpm2-cmd.c | 144 __be16 hash_alg; member 543 __be16 hash_alg; member 558 u16 hash_alg; in tpm2_get_pcr_allocation() local 600 hash_alg = be16_to_cpu(pcr_selection.hash_alg); in tpm2_get_pcr_allocation() 605 chip->allocated_banks[nr_alloc_banks].alg_id = hash_alg; in tpm2_get_pcr_allocation() 614 sizeof_pcr_selection = sizeof(pcr_selection.hash_alg) + in tpm2_get_pcr_allocation()
|
/kernel/linux/linux-6.6/security/keys/trusted-keys/ |
H A D | trusted_tpm1.c | 26 static const char hash_alg[] = "sha1"; variable 59 pr_info("can't alloc %s\n", hash_alg); in TSS_sha1() 132 pr_info("can't alloc %s\n", hash_alg); in TSS_authhmac() 208 pr_info("can't alloc %s\n", hash_alg); in TSS_checkhmac1() 301 pr_info("can't alloc %s\n", hash_alg); in TSS_checkhmac2() 1000 hashalg = crypto_alloc_shash(hash_alg, 0, 0); in trusted_shash_alloc() 1003 hash_alg); in trusted_shash_alloc()
|
/kernel/linux/linux-6.6/fs/verity/ |
H A D | hash_algs.c | 181 SHASH_DESC_ON_STACK(desc, params->hash_alg->tfm); in fsverity_hash_block() 184 desc->tfm = params->hash_alg->tfm; in fsverity_hash_block()
|
H A D | verify.c | 242 params->hash_alg->name, hsize, want_hash, in verify_data_block() 243 params->hash_alg->name, hsize, real_hash); in verify_data_block()
|
/third_party/node/deps/openssl/openssl/crypto/ct/ |
H A 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/openssl/crypto/ct/ |
H A 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/mbedtls/include/psa/ |
H A D | crypto_extra.h | 359 * \param hash_alg A hash algorithm (\c PSA_ALG_XXX value such that 360 * #PSA_ALG_IS_HASH(\p hash_alg) is true). 365 * \return Unspecified if \p hash_alg is not a supported 368 #define PSA_ALG_DSA(hash_alg) \ 369 (PSA_ALG_DSA_BASE | ((hash_alg) & PSA_ALG_HASH_MASK)) 377 * \param hash_alg A hash algorithm (\c PSA_ALG_XXX value such that 378 * #PSA_ALG_IS_HASH(\p hash_alg) is true). 383 * \return Unspecified if \p hash_alg is not a supported 386 #define PSA_ALG_DETERMINISTIC_DSA(hash_alg) \ 387 (PSA_ALG_DETERMINISTIC_DSA_BASE | ((hash_alg) [all...] |
/third_party/mbedtls/library/ |
H A D | psa_crypto_rsa.c | 292 psa_algorithm_t hash_alg = PSA_ALG_SIGN_GET_HASH(alg); in psa_rsa_decode_md_type() local 293 *md_alg = mbedtls_md_type_from_psa_alg(hash_alg); in psa_rsa_decode_md_type() 503 psa_algorithm_t hash_alg = PSA_ALG_RSA_OAEP_GET_HASH(alg); in psa_rsa_oaep_set_padding_mode() local 504 mbedtls_md_type_t md_alg = mbedtls_md_type_from_psa_alg(hash_alg); in psa_rsa_oaep_set_padding_mode()
|
H A D | x509write_csr.c | 147 psa_algorithm_t hash_alg = mbedtls_md_psa_alg_from_type(ctx->md_alg); in x509write_csr_der_internal() local 214 if (psa_hash_compute(hash_alg, in x509write_csr_der_internal()
|
/third_party/node/deps/openssl/openssl/include/crypto/ |
H A D | ess.h | 59 X509_ALGOR *hash_alg; /* Default: SHA-256 */ member
|
/third_party/openssl/include/crypto/ |
H A D | ess.h | 59 X509_ALGOR *hash_alg; /* Default: SHA-256 */ member
|
/third_party/mbedtls/tests/src/ |
H A D | psa_exercise_key.c | 344 psa_algorithm_t hash_alg = PSA_ALG_SIGN_GET_HASH(alg); in exercise_signature_key() local 345 if (PSA_ALG_IS_SIGN_HASH(alg) && hash_alg == PSA_ALG_ANY_HASH && in exercise_signature_key() 349 hash_alg = KNOWN_SUPPORTED_HASH_ALG; in exercise_signature_key() 350 alg ^= PSA_ALG_ANY_HASH ^ hash_alg; in exercise_signature_key() 367 if (hash_alg != 0) { in exercise_signature_key() 368 payload_length = PSA_HASH_LENGTH(hash_alg); in exercise_signature_key() 807 psa_algorithm_t hash_alg = PSA_ALG_HKDF_GET_HASH(kdf_alg); in exercise_key_agreement_key() local 809 if (PSA_BITS_TO_BYTES(key_bits) != PSA_HASH_LENGTH(hash_alg)) { in exercise_key_agreement_key()
|