函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Perform the DH computation or DH based key derivation.* If successful, 0 will be returned.

函数原型:long compat_keyctl_dh_compute(struct keyctl_dh_params __user *params, char __user *buffer, size_t buflen, struct compat_keyctl_kdf_params __user *kdf)

返回类型:long

参数:

类型参数名称
struct keyctl_dh_params __user *params
char __user *buffer
size_tbuflen
struct compat_keyctl_kdf_params __user *kdf
23  如果非kdf则返回:__keyctl_dh_compute(params, buffer, buflen, NULL)
26  如果copy_from_user( & compat_kdfcopy, kdf, compat_kdfcopy的长度)不等于0则返回:负EFAULT
29  hashname等于A pointer passed in from user mode. This should not* be used for syscall parameters, just declare them* as pointers because the syscall entry code will have* appropriately converted them already.
30  otherinfo等于A pointer passed in from user mode. This should not* be used for syscall parameters, just declare them* as pointers because the syscall entry code will have* appropriately converted them already.
31  otherinfolen等于otherinfolen
32  memcpy(__spare, __spare, __spare的长度)
35  返回:__keyctl_dh_compute(params, buffer, buflen, & kdfcopy)