函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Request an asymmetric key.

函数原型:static struct key *request_asymmetric_key(struct key *keyring, uint32_t keyid)

返回类型:struct key

参数:

类型参数名称
struct key *keyring
uint32_tkeyid
29  输出格式化串
31  pr_debug("key search: \"%s\"\n", name)
33  key等于get_ima_blacklist_keyring()
34  如果key
37  kref等于keyring_search - Search the supplied keyring tree for a matching key*@keyring: The root of the keyring tree to be searched
39  如果非是错误
40  打印错误信息("Key '%s' is in ima_blacklist_keyring\n", name)
41  返回:错误号
45  如果keyring
49  kref等于keyring_search - Search the supplied keyring tree for a matching key*@keyring: The root of the keyring tree to be searched
51  如果是错误key等于错误指示
53  否则key等于key_ref_to_ptr(kref)
55  否则
56  key等于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).
59  如果是错误
60  pr_err_ratelimited("Request for unknown key '%s' err %ld\n", name, 错误)
64  :错误恒等于负EACCES
65  :错误恒等于负ENOTDIR
66  :错误恒等于负EAGAIN
67  返回:错误号
68  默认
69  返回:key
73  pr_debug("%s() = 0 [%x]\n", __func__, key_serial(key))
75  返回:key
调用者
名称描述
asymmetric_verify