| Function report | 
| Source Code: security\keys\encrypted-keys\encrypted.c | Create Date:2022-07-28 18:32:49 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:valid_master_desc - verify the 'key-type:desc' of a new/updated master-key* key-type:= "trusted:" | "user:"* desc:= master-key description* Verify that 'key-type' is valid and that 'desc' exists. On key update,
Proto:static int valid_master_desc(const char *new_desc, const char *orig_desc)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| const char * | new_desc | |
| const char * | orig_desc | 
| 141 | If Not strncmp(new_desc, KEY_TRUSTED_PREFIX, KEY_TRUSTED_PREFIX_LEN) Then prefix_len = KEY_TRUSTED_PREFIX_LEN | 
| 143 | Else if Not strncmp(new_desc, KEY_USER_PREFIX, KEY_USER_PREFIX_LEN) Then prefix_len = KEY_USER_PREFIX_LEN | 
| 145 | Else Return -EINVAL | 
| 148 | If Not new_desc[prefix_len] Then Return -EINVAL | 
| 154 | Return 0 | 
| Name | Describe | 
|---|---|
| datablob_parse | datablob_parse - parse the keyctl data* datablob format:* new [ | 
| encrypted_update | rypted_update - update the master key description* Change the master key description for an existing encrypted key.* The next read will return an encrypted datablob using the new* master key description.* On success, return 0. Otherwise return errno. | 
| 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 |