函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:integrity_digsig_verify

函数原型:int integrity_digsig_verify(const unsigned int id, const char *sig, int siglen, const char *digest, int digestlen)

返回类型:int

参数:

类型参数名称
const unsigned intid
const char *sig
intsiglen
const char *digest
intdigestlen
66  如果siglen小于2则返回:负EINVAL
69  keyring等于integrity_keyring_from_id(id)
70  如果是错误则返回:错误
74  :sig[1]恒等于1
76  返回:digsig_verify() - digital signature verification with public key*@keyring: keyring to search key in*@sig: digital signature*@siglen: length of the signature*@data: data*@datalen: length of the data* Returns 0 on success, -EINVAL otherwise
78  :sig[1]恒等于2
79  返回:asymmetric_verify(keyring, sig, siglen, digest, digestlen)
83  返回:负EOPNOTSUPP
调用者
名称描述
xattr_verifyxattr_verify - verify xattr digest or signature* Verify whether the hash or signature matches the file contents.* Return 0 on success, error code otherwise.
evm_verify_hmacvm_verify_hmac - calculate and compare the HMAC with the EVM xattr* Compute the HMAC on the dentry's protected set of extended attributes* and compare it against the stored security