Function report |
Source Code:security\keys\encrypted-keys\encrypted.c |
Create Date:2022-07-28 18:33:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:static int encrypted_instantiate(struct key *key, struct key_preparsed_payload *prep)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
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 |
808 | datablob = Allocation memory |
813 |
ret = datablob_parse - parse the keyctl data* datablob format:* new [ |
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 | If ret < 0 Then |
828 | Go to out |
831 | rcu_assign_keypointer(key, epayload) |
832 | out : |
834 | Return ret |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |