函数逻辑报告 |
Source Code:fs\verity\verify.c |
Create Date:2022-07-29 10:58:43 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:cmp_hashes
函数原型:static inline int cmp_hashes(const struct fsverity_info *vi, const u8 *want_hash, const u8 *real_hash, unsigned long index, int level)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| const struct fsverity_info * | vi | |
| const u8 * | want_hash | |
| const u8 * | real_hash | |
| unsigned long | index | |
| int | level |
| 58 | 如果内存比较恒等于0则返回:0 |
| 61 | fsverity_err(inode, "FILE CORRUPTED! index=%lu, level=%d, want_hash=%s:%*phN, real_hash=%s:%*phN", index, level, crypto API name, e.g. sha256 , hsize, want_hash, crypto API name, e.g. sha256 , hsize, real_hash) |
| 66 | 返回:负EBADMSG |
| 名称 | 描述 |
|---|---|
| verify_page | Verify a single data page against the file's Merkle tree |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |