函数逻辑报告 |
Source Code:fs\verity\signature.c |
Create Date:2022-07-29 10:58:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:sverity_verify_signature() - check a verity file's signature* If the file's fs-verity descriptor includes a signature of the file* measurement, verify it against the certificates in the fs-verity keyring
函数原型:int fsverity_verify_signature(const struct fsverity_info *vi, const struct fsverity_descriptor *desc, size_t desc_size)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
const struct fsverity_info * | vi | |
const struct fsverity_descriptor * | desc | |
size_t | desc_size |
47 | 如果sig_size恒等于0则 |
57 | fsverity_err(inode, "Signature overflows verity descriptor") |
58 | 返回:负EBADMSG |
64 | memcpy(must be "FSVerity" , "FSVerity", 8) |
74 | 释放内存 |
76 | 如果err则 |
77 | 如果err恒等于负ENOKEY则fsverity_err(inode, "File's signing cert isn't in the fs-verity keyring") |
80 | 否则如果err恒等于负EKEYREJECTED则fsverity_err(inode, "Incorrect file signature") |
82 | 否则如果err恒等于负EBADMSG则fsverity_err(inode, "Malformed file signature") |
84 | 否则fsverity_err(inode, "Error %d verifying file signature", err) |
87 | 返回:err |
90 | pr_debug("Valid signature for file measurement %s:%*phN\n", crypto API name, e.g. sha256 , digest size in bytes, e.g. 32 for SHA-256 , measurement) |
92 | 返回:0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |