Searched refs:algo (Results 1 – 11 of 11) sorted by relevance
/security/integrity/ima/ |
D | ima_crypto.c | 62 enum hash_algo algo; member 91 static struct crypto_shash *ima_alloc_tfm(enum hash_algo algo) in ima_alloc_tfm() argument 96 if (algo < 0 || algo >= HASH_ALGO__LAST) in ima_alloc_tfm() 97 algo = ima_hash_algo; in ima_alloc_tfm() 99 if (algo == ima_hash_algo) in ima_alloc_tfm() 103 if (ima_algo_array[i].tfm && ima_algo_array[i].algo == algo) in ima_alloc_tfm() 106 tfm = crypto_alloc_shash(hash_algo_name[algo], 0, 0); in ima_alloc_tfm() 110 hash_algo_name[algo], rc); in ima_alloc_tfm() 117 enum hash_algo algo; in ima_init_crypto() local 129 algo = ima_tpm_chip->allocated_banks[i].crypto_id; in ima_init_crypto() [all …]
|
D | ima_template_lib.c | 16 static bool ima_template_hash_algo_allowed(u8 algo) in ima_template_hash_algo_allowed() argument 18 if (algo == HASH_ALGO_SHA1 || algo == HASH_ALGO_MD5) in ima_template_hash_algo_allowed() 324 if (ima_template_hash_algo_allowed(event_data->iint->ima_hash->algo)) { in ima_eventdigest_init() 332 hash.hdr.algo = HASH_ALGO_SHA1; in ima_eventdigest_init() 336 if (!result && hash.hdr.algo != HASH_ALGO_SHA1) in ima_eventdigest_init() 352 hash.hdr.algo = ima_template_hash_algo_allowed(ima_hash_algo) ? in ima_eventdigest_init() 383 hash_algo = event_data->iint->ima_hash->algo; in ima_eventdigest_ng_init()
|
D | ima_api.c | 215 enum hash_algo algo, struct modsig *modsig) in ima_collect_measurement() argument 247 hash.hdr.algo = algo; in ima_collect_measurement() 354 const char *algo_name = hash_algo_name[iint->ima_hash->algo]; in ima_audit_measurement()
|
D | ima_modsig.c | 125 int ima_get_modsig_digest(const struct modsig *modsig, enum hash_algo *algo, in ima_get_modsig_digest() argument 128 *algo = modsig->hash_algo; in ima_get_modsig_digest()
|
D | ima_appraise.c | 89 u8 algo = iint->ima_hash->algo; in ima_fix_xattr() local 91 if (algo <= HASH_ALGO_SHA1) { in ima_fix_xattr() 97 iint->ima_hash->xattr.ng.algo = algo; in ima_fix_xattr()
|
D | ima.h | 265 enum hash_algo algo, struct modsig *modsig); 386 int ima_get_modsig_digest(const struct modsig *modsig, enum hash_algo *algo, 404 enum hash_algo *algo, const u8 **digest, in ima_get_modsig_digest() argument
|
D | ima_init.c | 60 iint->ima_hash->algo = ima_hash_algo; in ima_add_boot_aggregate()
|
D | ima_main.c | 568 hash_algo = iint->ima_hash->algo; in __ima_inode_hash() 937 iint.ima_hash->algo = ima_hash_algo; in process_buffer_measurement()
|
/security/integrity/evm/ |
D | evm_crypto.c | 77 const char *algo; in init_desc() local 87 algo = evm_hmac; in init_desc() 93 algo = hash_algo_name[hash_algo]; in init_desc() 102 tmp_tfm = crypto_alloc_shash(algo, 0, CRYPTO_NOLOAD); in init_desc() 104 pr_err("Can not allocate %s (reason: %ld)\n", algo, in init_desc() 229 desc = init_desc(type, data->hdr.algo); in evm_calc_hmac_or_hash() 373 data.hdr.algo = HASH_ALGO_SHA1; in evm_update_evmxattr()
|
D | evm_main.c | 219 digest.hdr.algo = HASH_ALGO_SHA1; in evm_verify_hmac() 240 digest.hdr.algo = hdr->hash_algo; in evm_verify_hmac()
|
/security/integrity/ |
D | integrity.h | 97 u8 algo; member 106 u8 algo; member
|