函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ma_collect_modsig - Calculate the file hash without the appended signature.* Since the modsig is part of the file contents, the hash used in its signature* isn't the same one ordinarily calculated by IMA. Therefore PKCS7 code

函数原型:void ima_collect_modsig(struct modsig *modsig, const void *buf, loff_t size)

返回类型:void

参数:

类型参数名称
struct modsig *modsig
const void *buf
loff_tsize
125  size减等于* This is what will go to the measurement list if the template requires * storing the signature.strlen - Find the length of a string*@s: The string to be sizedsizeof(structmodule_signature)
127  rc等于pkcs7_supply_detached_data(pkcs7_msg, buf, size)
128  如果rc则返回
132  rc等于pkcs7_get_digest(pkcs7_msg, & This digest will go in the 'd-modsig' field of the IMA template. , & digest_size, & hash_algo)