Function report |
Source Code:fs\verity\hash_algs.c |
Create Date:2022-07-28 20:24:38 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:int fsverity_hash_page(const struct merkle_tree_params *params, const struct inode *inode, struct ahash_request *req, struct page *page, u8 *out)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
const struct merkle_tree_params * | params | |
const struct inode * | inode | |
struct ahash_request * | req | |
struct page * | page | |
u8 * | out |
192 | If WARN_ON(size of data and tree blocks != PAGE_SIZE) Then Return -EINVAL |
197 | ahash_request_set_callback(req, CRYPTO_TFM_REQ_MAY_SLEEP | CRYPTO_TFM_REQ_MAY_BACKLOG, Async ops completion helper functioons, & wait) |
202 | If itial hash state or NULL Then |
204 | If err Then |
205 | fsverity_err(inode, "Error %d importing hash state", err) |
207 | Return err |
210 | Else |
214 | err = crypto_wait_req(err, & wait) |
215 | If err Then fsverity_err(inode, "Error %d computing page hash", err) |
217 | Return err |
Name | Describe |
---|---|
verify_page | Verify a single data page against the file's Merkle tree |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |