Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Perform the DH computation or DH based key derivation.* If successful, 0 will be returned.

Proto:long compat_keyctl_dh_compute(struct keyctl_dh_params __user *params, char __user *buffer, size_t buflen, struct compat_keyctl_kdf_params __user *kdf)

Type:long

Parameter:

TypeParameterName
struct keyctl_dh_params __user *params
char __user *buffer
size_tbuflen
struct compat_keyctl_kdf_params __user *kdf
23  If Not kdf Then Return __keyctl_dh_compute(params, buffer, buflen, NULL)
26  If copy_from_user( & compat_kdfcopy, kdf, size of compat_kdfcopy ) != 0 Then Return -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, size of __spare )
35  Return __keyctl_dh_compute(params, buffer, buflen, & kdfcopy)