Function report |
Source Code:security\keys\trusted-keys\trusted_tpm1.c |
Create Date:2022-07-28 18:31:38 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:rusted_read - copy the sealed blob data to userspace in hex.* On success, return to userspace the trusted key datablob size.
Proto:static long trusted_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 |
1141 | p = dereference_key_locked(key) |
1146 | ascii_buf = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). |
1153 | If copy_to_user(buffer, ascii_buf, 2 * blob_len) != 0 Then |
1155 | Return -EFAULT |
1159 | Return 2 * blob_len |
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 |