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_calc_file_ahash

Proto:static int ima_calc_file_ahash(struct file *file, struct ima_digest_data *hash)

Type:int

Parameter:

TypeParameterName
struct file *file
struct ima_digest_data *hash
320  tfm = ima_alloc_atfm(algo)
321  If IS_ERR(tfm) Then Return PTR_ERR(tfm)
324  rc = ima_calc_file_hash_atfm(file, hash, tfm)
326  ima_free_atfm(tfm)
328  Return rc
Caller
NameDescribe
ima_calc_file_hashma_calc_file_hash - calculate file hash* Asynchronous hash (ahash) allows using HW acceleration for calculating* a hash. ahash performance varies for different data sizes on different* crypto accelerators