函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\integrity\ima\ima_crypto.c Create Date:2022-07-27 22:01:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:ima_calc_buffer_hash

函数原型:int ima_calc_buffer_hash(const void *buf, loff_t len, struct ima_digest_data *hash)

返回类型:int

参数:

类型参数名称
const void *buf
loff_tlen
struct ima_digest_data *hash
639  如果minimum file size for ahash use len大于等于minimum file size for ahash use
640  rc等于calc_buffer_ahash(buf, len, hash)
641  如果非rc则返回:0
645  返回:calc_buffer_shash(buf, len, hash)
调用者
名称描述
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