Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\integrity\evm\evm_crypto.c Create Date:2022-07-28 20:00:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:evm_init_hmac

Proto:int evm_init_hmac(struct inode *inode, const struct xattr *lsm_xattr, char *hmac_val)

Type:int

Parameter:

TypeParameterName
struct inode *inode
const struct xattr *lsm_xattr
char *hmac_val
338  desc = init_desc(EVM_XATTR_HMAC, HASH_ALGO_SHA1)
339  If IS_ERR(desc) Then
340  pr_info("init_desc failed\n")
341  Return PTR_ERR(desc)
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  kfree(desc)
347  Return 0