函数逻辑报告 |
Source Code:security\keys\encrypted-keys\encrypted.c |
Create Date:2022-07-27 20:07:07 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Derive authentication/encryption key from trusted key
函数原型:static int get_derived_key(u8 *derived_key, enum derived_key_type key_type, const u8 *master_key, size_t master_keylen)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
u8 * | derived_key | |
enum derived_key_type | key_type | |
const u8 * | master_key | |
size_t | master_keylen |
369 | derived_buf_len等于strlen - Find the length of a string*@s: The string to be sized加1加master_keylen |
373 | derived_buf等于分配内存并置零 |
374 | 如果非derived_buf则返回:负ENOMEM |
377 | 如果key_type则strcpy(derived_buf, "AUTH_KEY") |
379 | 否则strcpy(derived_buf, "ENC_KEY") |
382 | memcpy(derived_buf + strlen - Find the length of a string*@s: The string to be sized + 1, master_key, master_keylen) |
386 | 返回:ret |
名称 | 描述 |
---|---|
datablob_hmac_append | |
datablob_hmac_verify | verify HMAC before decrypting encrypted key |
encrypted_key_decrypt | |
encrypted_read | rypted_read - format and copy the encrypted data to userspace* The resulting datablob format is:* |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |