函数逻辑报告 |
Source Code:security\integrity\evm\evm_crypto.c |
Create Date:2022-07-27 22:08:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:vm_set_key() - set EVM HMAC key from the kernel*@key: pointer to a buffer with the key data*@size: length of the key data* This function allows setting the EVM HMAC key from the kernel* without using the "encrypted" key subsystem keys
函数原型:int evm_set_key(void *key, size_t keylen)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
void * | key | |
size_t | keylen |
57 | 如果st_and_set_bit - Set a bit and return its old value*@nr: Bit to set*@addr: Address to count from* This is an atomic fully-ordered operation (implied full memory barrier).则转到:busy |
60 | 如果keylen大于MAX_KEY_SIZE则转到:inval |
64 | 打印信息("key initialized\n") |
65 | 返回:0 |
66 | inval : |
68 | busy : |
69 | 打印错误信息("key initialization failed\n") |
70 | 返回:rc |
名称 | 描述 |
---|---|
evm_init_key | Get the key from the TPM for the SHA1-HMAC |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |