Home
last modified time | relevance | path

Searched refs:algo (Results 1 – 7 of 7) sorted by relevance

/security/integrity/ima/
Dima_crypto.c114 static struct crypto_shash *ima_alloc_tfm(enum hash_algo algo) in ima_alloc_tfm() argument
119 if (algo < 0 || algo >= HASH_ALGO__LAST) in ima_alloc_tfm()
120 algo = ima_hash_algo; in ima_alloc_tfm()
122 if (algo != ima_hash_algo) { in ima_alloc_tfm()
123 tfm = crypto_alloc_shash(hash_algo_name[algo], 0, 0); in ima_alloc_tfm()
127 hash_algo_name[algo], rc); in ima_alloc_tfm()
201 static struct crypto_ahash *ima_alloc_atfm(enum hash_algo algo) in ima_alloc_atfm() argument
206 if (algo < 0 || algo >= HASH_ALGO__LAST) in ima_alloc_atfm()
207 algo = ima_hash_algo; in ima_alloc_atfm()
209 if (algo != ima_hash_algo || !tfm) { in ima_alloc_atfm()
[all …]
Dima_appraise.c52 u8 algo = iint->ima_hash->algo; in ima_fix_xattr() local
54 if (algo <= HASH_ALGO_SHA1) { in ima_fix_xattr()
60 iint->ima_hash->xattr.ng.algo = algo; in ima_fix_xattr()
146 hash->algo = sig->hash_algo; in ima_get_hash_algo()
149 hash->algo = xattr_value->digest[0]; in ima_get_hash_algo()
156 hash->algo = HASH_ALGO_MD5; in ima_get_hash_algo()
158 hash->algo = HASH_ALGO_SHA1; in ima_get_hash_algo()
160 hash->algo = HASH_ALGO_MD5; in ima_get_hash_algo()
Dima_template_lib.c19 static bool ima_template_hash_algo_allowed(u8 algo) in ima_template_hash_algo_allowed() argument
21 if (algo == HASH_ALGO_SHA1 || algo == HASH_ALGO_MD5) in ima_template_hash_algo_allowed()
218 if (ima_template_hash_algo_allowed(iint->ima_hash->algo)) { in ima_eventdigest_init()
228 hash.hdr.algo = ima_template_hash_algo_allowed(ima_hash_algo) ? in ima_eventdigest_init()
262 hash_algo = iint->ima_hash->algo; in ima_eventdigest_ng_init()
Dima_api.c108 hash.hdr.algo = HASH_ALGO_SHA1; in ima_store_template()
219 hash.hdr.algo = ima_hash_algo; in ima_collect_measurement()
296 const char *algo_name = hash_algo_name[iint->ima_hash->algo]; in ima_audit_measurement()
Dima_init.c62 iint->ima_hash->algo = HASH_ALGO_SHA1; in ima_add_boot_aggregate()
/security/integrity/evm/
Devm_crypto.c38 char *algo; in init_desc() local
44 algo = evm_hmac; in init_desc()
47 algo = evm_hash; in init_desc()
54 *tfm = crypto_alloc_shash(algo, 0, CRYPTO_ALG_ASYNC); in init_desc()
57 pr_err("Can not allocate %s (reason: %ld)\n", algo, rc); in init_desc()
/security/integrity/
Dintegrity.h75 u8 algo; member
84 u8 algo; member