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_shash

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

Type:int

Parameter:

TypeParameterName
struct file *file
struct ima_digest_data *hash
385  tfm = ima_alloc_tfm(algo)
386  If IS_ERR(tfm) Then Return PTR_ERR(tfm)
389  rc = ima_calc_file_hash_tfm(file, hash, tfm)
391  ima_free_tfm(tfm)
393  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