Function report |
Source Code:security\keys\encrypted-keys\encrypted.c |
Create Date:2022-07-28 18:34:04 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:rypted_read - format and copy the encrypted data to userspace* The resulting datablob format is:* <master-key name> <decrypted data length> <encrypted iv> <encrypted data>* On success, return to userspace the encrypted key datablob size.
Proto:static long encrypted_read(const struct key *key, char __user *buffer, size_t buflen)
Type:long
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const struct key * | key | |
| char __user * | buffer | |
| size_t | buflen |
| 924 | epayload = dereference_key_locked(key) |
| 931 | If Not buffer || buflen < asciiblob_len Then Return asciiblob_len |
| 934 | mkey = request_master_key(epayload, & master_key, & master_keylen) |
| 951 | If Not ascii_buf Then |
| 960 | If copy_to_user(buffer, ascii_buf, asciiblob_len) != 0 Then ret = -EFAULT |
| 964 | Return asciiblob_len |
| 965 | out : |
| 969 | 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 |