Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:quest_trusted_key - request the trusted key* Trusted keys are sealed to PCRs and other metadata. Although userspace* manages both trusted/encrypted key-types, like the encrypted key type* data, trusted key type data is not visible decrypted from userspace.

Proto:struct key *request_trusted_key(const char *trusted_desc, const u8 **master_key, size_t *master_keylen)

Type:struct key

Parameter:

TypeParameterName
const char *trusted_desc
const u8 **master_key
size_t *master_keylen
33  tkey = 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).
34  If IS_ERR(tkey) Then Go to error
37  lock for reading
38  tpayload = data[0]
39  master_key = key
40  master_keylen = key_len
41  error :
42  Return tkey