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

Name:ima_calc_buffer_hash

Proto:int ima_calc_buffer_hash(const void *buf, loff_t len, struct ima_digest_data *hash)

Type:int

Parameter:

TypeParameterName
const void *buf
loff_tlen
struct ima_digest_data *hash
639  If minimum file size for ahash use && len >= minimum file size for ahash use Then
640  rc = calc_buffer_ahash(buf, len, hash)
641  If Not rc Then Return 0
645  Return calc_buffer_shash(buf, len, hash)
Caller
NameDescribe
ima_collect_measurementma_collect_measurement - collect file measurement* Calculate the file hash, if it doesn't already exist,* storing the measurement and i_version in the iint.* Must be called with iint->mutex held.* Return 0 on success, error code otherwise