Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\encrypted-keys\encrypted.c Create Date:2022-07-28 18:33:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:quest_user_key - request the user key* Use a user provided key to encrypt/decrypt an encrypted-key.

Proto:static struct key *request_user_key(const char *master_desc, const u8 **master_key, size_t *master_keylen)

Type:struct key

Parameter:

TypeParameterName
const char *master_desc
const u8 **master_key
size_t *master_keylen
307  ukey = quest_key - Request a key and wait for construction*@type: Type of key.*@description: The searchable description of the key.*@callout_info: The data to pass to the instantiation upcall (or NULL).
308  If IS_ERR(ukey) Then Go to error
311  lock for reading
312  upayload = user_key_payload_locked(ukey)
313  If Not upayload Then
315  lease a read lock
316  key_put - Discard a reference to a key.*@key: The key to discard a reference from.* Discard a reference to a key, and when all the references are gone, we* schedule the cleanup task to come and pull it out of the tree in process
317  ukey = ERR_PTR( - EKEYREVOKED)
318  Go to error
320  master_key = actual data
321  master_keylen = length of this data
322  error :
323  Return ukey
Caller
NameDescribe
request_master_key