函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dh_data_from_key

函数原型:static ssize_t dh_data_from_key(key_serial_t keyid, void **data)

返回类型:ssize_t

参数:

类型参数名称
key_serial_tkeyid
void **data
24  key_ref等于Look up a key ID given us by userspace with a given permissions mask to get* the key it refers to.* Flags can be passed to request that special keyrings be created if referred* to directly, to permit partially constructed keys to be found and to skip
25  如果是错误
26  ret等于负ENOKEY
27  转到:error
30  key等于key_ref_to_ptr(key_ref)
32  ret等于负EOPNOTSUPP
33  如果 type of key 恒等于user defined keys take an arbitrary string as the description and an* arbitrary blob of data as the payload
34  lock for reading
35  status等于key_validate - Validate a key.*@key: The key to be validated.* Check that a key is valid, returning 0 if the key is okay, -ENOKEY if the* key is invalidated, -EKEYREVOKED if the key's type has been removed or if
36  如果status恒等于0则
44  如果duplicate
45  data等于duplicate
47  否则
48  ret等于负ENOMEM
51  lease a read lock
54  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
55  error :
56  返回:ret
调用者
名称描述
__keyctl_dh_compute