Home
last modified time | relevance | path

Searched refs:HASH_ALGO_SHA1 (Results 1 – 14 of 14) sorted by relevance

/openbmc/linux/crypto/
H A Dhash_info.c14 [HASH_ALGO_SHA1] = "sha1",
38 [HASH_ALGO_SHA1] = SHA1_DIGEST_SIZE,
/openbmc/linux/security/integrity/ima/
H A Dima_crypto.c130 if (algo == HASH_ALGO_SHA1) in ima_init_crypto()
139 if (ima_hash_algo == HASH_ALGO_SHA1) in ima_init_crypto()
168 if (algo == HASH_ALGO_SHA1) { in ima_init_crypto()
179 if (ima_hash_algo == HASH_ALGO_SHA1) { in ima_init_crypto()
183 ima_alloc_tfm(HASH_ALGO_SHA1); in ima_init_crypto()
190 ima_algo_array[ima_sha1_idx].algo = HASH_ALGO_SHA1; in ima_init_crypto()
860 if (bank_idx == -1 && crypto_id == HASH_ALGO_SHA1) in ima_calc_boot_aggregate()
H A Dima_template_lib.c18 if (algo == HASH_ALGO_SHA1 || algo == HASH_ALGO_MD5) in ima_template_hash_algo_allowed()
360 hash.hdr.algo = HASH_ALGO_SHA1; in ima_eventdigest_init()
364 if (!result && hash.hdr.algo != HASH_ALGO_SHA1) in ima_eventdigest_init()
372 cur_digestsize = hash_digest_size[HASH_ALGO_SHA1]; in ima_eventdigest_init()
381 ima_hash_algo : HASH_ALGO_SHA1; in ima_eventdigest_init()
461 hash_algo = HASH_ALGO_SHA1; in ima_eventdigest_modsig_init()
H A Dima_appraise.c93 if (algo <= HASH_ALGO_SHA1) { in ima_fix_xattr()
216 return HASH_ALGO_SHA1; in ima_get_hash_algo()
H A Dima_main.c38 int __ro_after_init ima_hash_algo = HASH_ALGO_SHA1;
55 ima_hash_algo = HASH_ALGO_SHA1; in hash_setup()
H A Dima_template.c131 ima_hash_algo != HASH_ALGO_SHA1 && ima_hash_algo != HASH_ALGO_MD5) { in ima_template_setup()
/openbmc/linux/include/uapi/linux/
H A Dhash_info.h20 HASH_ALGO_SHA1, enumerator
/openbmc/linux/security/integrity/evm/
H A Devm_crypto.c373 data.hdr.algo = HASH_ALGO_SHA1; in evm_update_evmxattr()
394 desc = init_desc(EVM_XATTR_HMAC, HASH_ALGO_SHA1); in evm_init_hmac()
H A Devm_main.c214 digest.hdr.algo = HASH_ALGO_SHA1; in evm_verify_hmac()
/openbmc/qemu/hw/misc/
H A Daspeed_hace.c37 #define HASH_ALGO_SHA1 BIT(5) macro
74 { HASH_ALGO_SHA1, QCRYPTO_HASH_ALG_SHA1 },
/openbmc/linux/drivers/char/tpm/
H A Dtpm1-cmd.c808 chip->allocated_banks[0].digest_size = hash_digest_size[HASH_ALGO_SHA1]; in tpm1_get_pcr_allocation()
809 chip->allocated_banks[0].crypto_id = HASH_ALGO_SHA1; in tpm1_get_pcr_allocation()
H A Dtpm2-cmd.c18 {HASH_ALGO_SHA1, TPM_ALG_SHA1},
/openbmc/linux/security/keys/trusted-keys/
H A Dtrusted_tpm1.c750 opt->hash = tpm2 ? HASH_ALGO_SHA256 : HASH_ALGO_SHA1; in getoptions()
838 if (!tpm2 && i != HASH_ALGO_SHA1) { in getoptions()
H A Dtrusted_tpm2.c22 {HASH_ALGO_SHA1, TPM_ALG_SHA1},