函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:evm_init_hmac

函数原型:int evm_init_hmac(struct inode *inode, const struct xattr *lsm_xattr, char *hmac_val)

返回类型:int

参数:

类型参数名称
struct inode *inode
const struct xattr *lsm_xattr
char *hmac_val
338  desc等于init_desc(EVM_XATTR_HMAC, HASH_ALGO_SHA1)
339  如果是错误
340  打印信息("init_desc failed\n")
341  返回:错误
344  rypto_shash_update() - add data to message digest for processing*@desc: operational state handle that is already initialized*@data: input data to be added to the message digest*@len: length of the input data
345  Protect against 'cutting & pasting' security.evm xattr, include inode* specific info.* (Additional directory/file metadata needs to be added for more complete* protection.)
346  释放内存
347  返回:0