Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\integrity\ima\ima_crypto.c Create Date:2022-07-28 19:58:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ima_alloc_tfm

Proto:static struct crypto_shash *ima_alloc_tfm(enum hash_algo algo)

Type:struct crypto_shash

Parameter:

TypeParameterName
enum hash_algoalgo
80  tfm = ima_shash_tfm
83  If algo < 0 || algo >= HASH_ALGO__LAST Then algo = ima_hash_algo
86  If algo != ima_hash_algo Then
87  tfm = crypto_alloc_shash(hash_algo_name[algo], 0, 0)
88  If IS_ERR(tfm) Then
89  rc = PTR_ERR(tfm)
90  pr_err("Can not allocate %s (reason: %d)\n", hash_algo_name[algo], rc)
94  Return tfm
Caller
NameDescribe
ima_calc_file_shash
ima_calc_field_array_hash
calc_buffer_shash
ima_calc_boot_aggregate