Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/security/integrity/ima/
H A Dima_template_lib.c16 if (algo == HASH_ALGO_SHA1 || algo == HASH_ALGO_MD5) in ima_template_hash_algo_allowed()
291 hash.hdr.algo = HASH_ALGO_SHA1; in ima_eventdigest_init()
295 if (!result && hash.hdr.algo != HASH_ALGO_SHA1) in ima_eventdigest_init()
303 cur_digestsize = hash_digest_size[HASH_ALGO_SHA1]; in ima_eventdigest_init()
312 ima_hash_algo : HASH_ALGO_SHA1; in ima_eventdigest_init()
333 u8 *cur_digest = NULL, hash_algo = HASH_ALGO_SHA1; in ima_eventdigest_ng_init()
364 hash_algo = HASH_ALGO_SHA1; in ima_eventdigest_modsig_init()
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_appraise.c84 if (algo <= HASH_ALGO_SHA1) { in ima_fix_xattr()
198 return HASH_ALGO_SHA1; in ima_get_hash_algo()
H A Dima_main.c38 int ima_hash_algo = HASH_ALGO_SHA1;
55 ima_hash_algo = HASH_ALGO_SHA1; in hash_setup()
H A Dima_template.c106 ima_hash_algo != HASH_ALGO_SHA1 && ima_hash_algo != HASH_ALGO_MD5) { in ima_template_setup()
/OK3568_Linux_fs/kernel/crypto/
H A Dhash_info.c14 [HASH_ALGO_SHA1] = "sha1",
38 [HASH_ALGO_SHA1] = SHA1_DIGEST_SIZE,
/OK3568_Linux_fs/kernel/drivers/crypto/ux500/hash/
H A Dhash_core.c229 if (HASH_ALGO_SHA1 == ctx->config.algorithm) { in get_empty_message_digest()
248 if (HASH_ALGO_SHA1 == ctx->config.algorithm) { in get_empty_message_digest()
680 if (config->algorithm != HASH_ALGO_SHA1 && in hash_setconfiguration()
694 case HASH_ALGO_SHA1: in hash_setconfiguration()
1273 if (algorithm != HASH_ALGO_SHA1 && algorithm != HASH_ALGO_SHA256) { in hash_get_digest()
1279 if (algorithm == HASH_ALGO_SHA1) in hash_get_digest()
1366 ctx->config.algorithm = HASH_ALGO_SHA1; in ahash_sha1_init()
1432 ctx->config.algorithm = HASH_ALGO_SHA1; in hmac_sha1_init()
1485 return hash_setkey(tfm, key, keylen, HASH_ALGO_SHA1); in hmac_sha1_setkey()
1523 .conf.algorithm = HASH_ALGO_SHA1,
[all …]
H A Dhash_alg.h273 HASH_ALGO_SHA1 = 0x0, enumerator
/OK3568_Linux_fs/kernel/drivers/crypto/rockchip/
H A Drk_crypto_v3.c31 [HASH_ALGO_SHA1] = CRYPTO_HASH_SHA1_FLAG,
43 [HASH_ALGO_SHA1] = CRYPTO_HMAC_SHA1_FLAG,
H A Drk_crypto_v2_ahash.c32 [HASH_ALGO_SHA1] = CRYPTO_SHA1,
H A Drk_crypto_core.h249 HASH_ALGO_SHA1, enumerator
H A Drk_crypto_v3_ahash.c37 [HASH_ALGO_SHA1] = CRYPTO_SHA1,
H A Drk_crypto_ahash_utils.c16 [HASH_ALGO_SHA1] = "sha1",
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/
H A Dhash_info.h20 HASH_ALGO_SHA1, enumerator
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/
H A Dhash_info.h20 HASH_ALGO_SHA1, enumerator
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Dhash_info.h20 HASH_ALGO_SHA1, enumerator
/OK3568_Linux_fs/kernel/security/integrity/evm/
H A Devm_crypto.c317 data.hdr.algo = HASH_ALGO_SHA1; in evm_update_evmxattr()
336 desc = init_desc(EVM_XATTR_HMAC, HASH_ALGO_SHA1); in evm_init_hmac()
H A Devm_main.c176 digest.hdr.algo = HASH_ALGO_SHA1; in evm_verify_hmac()
/OK3568_Linux_fs/kernel/drivers/char/tpm/
H A Dtpm1-cmd.c803 chip->allocated_banks[0].digest_size = hash_digest_size[HASH_ALGO_SHA1]; in tpm1_get_pcr_allocation()
804 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},
/OK3568_Linux_fs/kernel/security/keys/trusted-keys/
H A Dtrusted_tpm2.c16 {HASH_ALGO_SHA1, TPM_ALG_SHA1},
H A Dtrusted_tpm1.c761 opt->hash = tpm2 ? HASH_ALGO_SHA256 : HASH_ALGO_SHA1; in getoptions()
846 if (!tpm2 && i != HASH_ALGO_SHA1) { in getoptions()