Function report |
Source Code:security\keys\encrypted-keys\encrypted.c |
Create Date:2022-07-28 18:33:58 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:static int encrypted_update(struct key *key, struct key_preparsed_payload *prep)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct key * | key | |
| struct key_preparsed_payload * | prep |
| 859 | char * new_master_desc = NULL |
| 860 | const char * format = NULL |
| 861 | datalen = Raw datalen |
| 862 | ret = 0 |
| 864 | If key_is_negative(key) Then Return -ENOKEY |
| 869 | buf = Allocation memory |
| 875 |
ret = datablob_parse - parse the keyctl data* datablob format:* new [ |
| 885 | If IS_ERR(new_epayload) Then |
| 886 | ret = PTR_ERR(new_epayload) |
| 887 | Go to out |
| 893 | memcpy( datablob: iv , datablob: iv , ivsize) |
| 899 | out : |
| 901 | 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 |