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:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ima_alloc_atfm

Proto:static struct crypto_ahash *ima_alloc_atfm(enum hash_algo algo)

Type:struct crypto_ahash

Parameter:

TypeParameterName
enum hash_algoalgo
167  tfm = ima_ahash_tfm
170  If algo < 0 || algo >= HASH_ALGO__LAST Then algo = ima_hash_algo
173  If algo != ima_hash_algo || Not tfm Then
174  tfm = crypto_alloc_ahash(hash_algo_name[algo], 0, 0)
175  If Not IS_ERR(tfm) Then
176  If algo == ima_hash_algo Then ima_ahash_tfm = tfm
178  Else
179  rc = PTR_ERR(tfm)
180  pr_err("Can not allocate %s (reason: %d)\n", hash_algo_name[algo], rc)
184  Return tfm
Caller
NameDescribe
ima_calc_file_ahash
calc_buffer_ahash