函数逻辑报告 |
Source Code:security\keys\encrypted-keys\encrypted.c |
Create Date:2022-07-27 20:07:50 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:rypted_instantiate - instantiate an encrypted key* Decrypt an existing encrypted datablob or create a new encrypted key* based on a kernel random number.* On success, return 0. Otherwise return errno.
函数原型:static int encrypted_instantiate(struct key *key, struct key_preparsed_payload *prep)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct key * | key | |
struct key_preparsed_payload * | prep |
796 | struct encrypted_key_payload * epayload = NULL |
797 | char * datablob = NULL |
798 | const char * format = NULL |
799 | char * master_desc = NULL |
800 | char * decrypted_datalen = NULL |
801 | char * hex_encoded_iv = NULL |
802 | datalen等于Raw datalen |
813 |
ret等于datablob_parse - parse the keyctl data* datablob format:* new [ |
820 | 如果是错误则 |
824 | ret等于rypted_init - initialize an encrypted key* For a new key, use a random number for both the iv and data* itself. For an old key, decrypt the hex encoded data. |
826 | 如果ret小于0则 |
828 | 转到:out |
831 | rcu_assign_keypointer(key, epayload) |
832 | out : |
834 | 返回:ret |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |