函数逻辑报告 |
Source Code:security\integrity\evm\evm_crypto.c |
Create Date:2022-07-27 22:09:03 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:init_desc
函数原型:static struct shash_desc *init_desc(char type, uint8_t hash_algo)
返回类型:struct shash_desc
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| char | type | |
| uint8_t | hash_algo |
| 81 | 如果type恒等于EVM_XATTR_HMAC则 |
| 82 | 如果非evm_initialized按位与EVM_INIT_HMAC的值则 |
| 83 | pr_err_once("HMAC key is not set\n") |
| 84 | 返回:错误号 |
| 88 | 否则 |
| 89 | 如果hash_algo大于等于HASH_ALGO__LAST则返回:错误号 |
| 93 | algo等于hash_algo_name[hash_algo] |
| 96 | 如果( * tfm == NULL)则 |
| 97 | mutex_lock( & mutex) |
| 101 | 如果是错误则 |
| 108 | 如果type恒等于EVM_XATTR_HMAC则 |
| 110 | 如果rc则 |
| 117 | out : |
| 129 | 如果rc则 |
| 133 | 返回:desc |
| 名称 | 描述 |
|---|---|
| evm_calc_hmac_or_hash | Calculate the HMAC value across the set of protected security xattrs.* Instead of retrieving the requested xattr, for performance, calculate* the hmac using the requested xattr value. Don't alloc/free memory for |
| evm_init_hmac |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |