Searched refs:algo (Results 1 – 7 of 7) sorted by relevance
114 static struct crypto_shash *ima_alloc_tfm(enum hash_algo algo) in ima_alloc_tfm() argument119 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() argument206 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 …]
52 u8 algo = iint->ima_hash->algo; in ima_fix_xattr() local54 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()
19 static bool ima_template_hash_algo_allowed(u8 algo) in ima_template_hash_algo_allowed() argument21 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()
108 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()
62 iint->ima_hash->algo = HASH_ALGO_SHA1; in ima_add_boot_aggregate()
38 char *algo; in init_desc() local44 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()
75 u8 algo; member84 u8 algo; member