Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:integrity_digsig_verify

Proto:int integrity_digsig_verify(const unsigned int id, const char *sig, int siglen, const char *digest, int digestlen)

Type:int

Parameter:

TypeParameterName
const unsigned intid
const char *sig
intsiglen
const char *digest
intdigestlen
66  If siglen < 2 Then Return -EINVAL
69  keyring = integrity_keyring_from_id(id)
70  If IS_ERR(keyring) Then Return PTR_ERR(keyring)
74  Case sig[1] == 1
76  Return 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  Case sig[1] == 2
79  Return asymmetric_verify(keyring, sig, siglen, digest, digestlen)
83  Return -EOPNOTSUPP
Caller
NameDescribe
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