Searched refs:ima_hash_algo (Results 1 – 8 of 8) sorted by relevance
/security/integrity/ima/ |
D | ima_crypto.c | 79 ima_shash_tfm = crypto_alloc_shash(hash_algo_name[ima_hash_algo], 0, 0); in ima_init_ima_crypto() 83 hash_algo_name[ima_hash_algo], rc); in ima_init_ima_crypto() 87 hash_algo_name[ima_hash_algo]); in ima_init_ima_crypto() 97 algo = ima_hash_algo; in ima_alloc_tfm() 99 if (algo == ima_hash_algo) in ima_alloc_tfm() 133 if (algo == ima_hash_algo) in ima_init_crypto() 139 if (ima_hash_algo == HASH_ALGO_SHA1) in ima_init_crypto() 161 if (algo == ima_hash_algo) { in ima_init_crypto() 179 if (ima_hash_algo == HASH_ALGO_SHA1) { in ima_init_crypto() 196 ima_algo_array[ima_hash_algo_idx].algo = ima_hash_algo; in ima_init_crypto() [all …]
|
D | ima_main.c | 39 int __ro_after_init ima_hash_algo = HASH_ALGO_SHA1; variable 56 ima_hash_algo = HASH_ALGO_SHA1; in hash_setup() 58 ima_hash_algo = HASH_ALGO_MD5; in hash_setup() 73 ima_hash_algo = i; in hash_setup() 82 return ima_hash_algo; in ima_get_current_hash_algo() 899 int digest_hash_len = hash_digest_size[ima_hash_algo]; in process_buffer_measurement() 937 iint.ima_hash->algo = ima_hash_algo; in process_buffer_measurement() 938 iint.ima_hash->length = hash_digest_size[ima_hash_algo]; in process_buffer_measurement() 1055 if (error && strcmp(hash_algo_name[ima_hash_algo], in init_ima() 1058 hash_algo_name[ima_hash_algo], CONFIG_IMA_DEFAULT_HASH); in init_ima()
|
D | ima_init.c | 60 iint->ima_hash->algo = ima_hash_algo; in ima_add_boot_aggregate() 61 iint->ima_hash->length = hash_digest_size[ima_hash_algo]; in ima_add_boot_aggregate()
|
D | ima_appraise.c | 183 return ima_hash_algo; in ima_get_hash_algo() 190 return ima_hash_algo; in ima_get_hash_algo() 213 return ima_hash_algo; in ima_get_hash_algo() 508 rc = ima_collect_measurement(iint, file, NULL, 0, ima_hash_algo, NULL); in ima_update_xattr() 619 if (likely(xattr_hash_algo == ima_hash_algo)) in validate_hash_algo()
|
D | ima.h | 53 extern int ima_hash_algo __ro_after_init; 371 return ima_hash_algo; in ima_get_hash_algo()
|
D | ima_template.c | 127 ima_hash_algo != HASH_ALGO_SHA1 && ima_hash_algo != HASH_ALGO_MD5) { in ima_template_setup()
|
D | ima_queue.c | 59 digest_value, hash_digest_size[ima_hash_algo]); in ima_lookup_digest_entry()
|
D | ima_template_lib.c | 352 hash.hdr.algo = ima_template_hash_algo_allowed(ima_hash_algo) ? in ima_eventdigest_init() 353 ima_hash_algo : HASH_ALGO_SHA1; in ima_eventdigest_init()
|