函数逻辑报告 |
Source Code:fs\verity\hash_algs.c |
Create Date:2022-07-29 10:58:21 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:sverity_hash_page() - hash a single data or hash page*@params: the Merkle tree's parameters*@inode: inode for which the hashing is being done*@req: preallocated hash request*@page: the page to hash*@out: output digest, size 'params->digest_size' bytes
函数原型:int fsverity_hash_page(const struct merkle_tree_params *params, const struct inode *inode, struct ahash_request *req, struct page *page, u8 *out)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| const struct merkle_tree_params * | params | |
| const struct inode * | inode | |
| struct ahash_request * | req | |
| struct page * | page | |
| u8 * | out |
| 192 | 如果WARN_ON(size of data and tree blocks != PAGE_SIZE)则返回:负EINVAL |
| 195 | 初始化散列表 |
| 197 | ahash_request_set_callback(req, CRYPTO_TFM_REQ_MAY_SLEEP | CRYPTO_TFM_REQ_MAY_BACKLOG, Async ops completion helper functioons, & wait) |
| 202 | 如果itial hash state or NULL 则 |
| 204 | 如果err则 |
| 205 | fsverity_err(inode, "Error %d importing hash state", err) |
| 207 | 返回:err |
| 210 | 否则 |
| 214 | err等于crypto_wait_req(err, & wait) |
| 215 | 如果err则fsverity_err(inode, "Error %d computing page hash", err) |
| 217 | 返回:err |
| 名称 | 描述 |
|---|---|
| verify_page | Verify a single data page against the file's Merkle tree |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |