函数逻辑报告 |
Source Code:fs\verity\hash_algs.c |
Create Date:2022-07-29 10:58:20 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:sverity_prepare_hash_state() - precompute the initial hash state*@alg: hash algorithm*@salt: a salt which is to be prepended to all data to be hashed*@salt_size: salt size in bytes, possibly 0* Return: NULL if the salt is empty, otherwise the kmalloc()'ed
函数原型:const u8 *fsverity_prepare_hash_state(const struct fsverity_hash_alg *alg, const u8 *salt, size_t salt_size)
返回类型:u8
参数:
类型 | 参数 | 名称 |
---|---|---|
const struct fsverity_hash_alg * | alg | |
const u8 * | salt | |
size_t | salt_size |
108 | struct ahash_request * req = NULL |
109 | u8 * padded_salt = NULL |
115 | 如果salt_size恒等于0则返回:NULL |
123 | 如果非req则 |
136 | padded_salt等于分配内存并置零 |
137 | 如果非padded_salt则 |
141 | memcpy(padded_salt, salt, salt_size) |
143 | 初始化散列表项目 |
153 | err等于crypto_wait_req(rypto_ahash_update() - add data to message digest for processing*@req: ahash_request handle that was previously initialized with the* crypto_ahash_init call, & wait) |
160 | out : |
161 | 归零并释放数据结构请求 |
162 | 释放内存 |
163 | 返回:hashstate |
165 | err_free : |
166 | 释放内存 |
168 | 转到:out |
名称 | 描述 |
---|---|
fsverity_init_merkle_tree_params | sverity_init_merkle_tree_params() - initialize Merkle tree parameters*@params: the parameters struct to initialize*@inode: the inode for which the Merkle tree is being built*@hash_algorithm: number of hash algorithm to use*@log_blocksize: log base 2 of |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |