函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\encrypted-keys\encrypted.c Create Date:2022-07-27 20:07:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:request_master_key

函数原型:static struct key *request_master_key(struct encrypted_key_payload *epayload, const u8 **master_key, size_t *master_keylen)

返回类型:struct key

参数:

类型参数名称
struct encrypted_key_payload *epayload
const u8 **master_key
size_t *master_keylen
425  mkey等于错误号
427  如果非字符串指定长度比较
429  mkey等于request_trusted_key( datablob: master key name + KEY_TRUSTED_PREFIX_LEN, master_key, master_keylen)
432  否则如果非字符串指定长度比较
434  mkey等于quest_user_key - request the user key* Use a user provided key to encrypt/decrypt an encrypted-key.
437  否则转到:out
440  如果是错误
441  ret等于错误
443  如果ret恒等于负Operation is not supported 打印信息("encrypted_key: key %s not supported", datablob: master key name )
446  否则打印信息("encrypted_key: key %s not found", datablob: master key name )
449  转到:out
452  dump_master_key( * master_key, * master_keylen)
453  out :
454  返回:mkey
调用者
名称描述
encrypted_key_decrypt
encrypted_readrypted_read - format and copy the encrypted data to userspace* The resulting datablob format is:* * On success, return to userspace the encrypted key datablob size.