text
stringlengths
0
234
.b efault
.i operation
was
.b keyctl_dh_compute
and one of the following has failed:
.rs
.ip \(bu 3
copying of the
.ir "struct keyctl_dh_params" ,
provided in the
.i arg2
argument, from user space;
.ip \(bu
copying of the
.ir "struct keyctl_kdf_params" ,
provided in the non-null
.i arg5
argument, from user space
(in case kernel supports performing kdf operation on dh operation result);
.ip \(bu
copying of data pointed by the
.i hashname
field of the
.i "struct keyctl_kdf_params"
from user space;
.ip \(bu
copying of data pointed by the
.i otherinfo
field of the
.i struct keyctl_kdf_params
from user space if the
.i otherinfolen
field was nonzero;
.ip \(bu
copying of the result to user space.
.re
.tp
.b einval
.i operation
was
.b keyctl_setperm
and an invalid permission bit was specified in
.ir arg3 .
.tp
.b einval
.i operation
was
.br keyctl_search
and the size of the description in
.ir arg4
(including the terminating null byte) exceeded 4096 bytes.
.tp
.b einval
size of the string (including the terminating null byte) specified in
.i arg3
(the key type)
or
.i arg4
(the key description)
exceeded the limit (32 bytes and 4096 bytes respectively).
.tp
.br einval " (linux kernels before 4.12)"
.i operation
was
.br keyctl_dh_compute ,
argument
.i arg5
was non-null.
.tp
.b einval
.i operation
was
.b keyctl_dh_compute
and the digest size of the hashing algorithm supplied is zero.
.tp
.b einval
.i operation
was
.b keyctl_dh_compute
and the buffer size provided is not enough to hold the result.
provide 0 as a buffer size in order to obtain the minimum buffer size.
.tp
.b einval
.i operation
was
.b keyctl_dh_compute
and the hash name provided in the
.i hashname
field of the
.i struct keyctl_kdf_params
pointed by
.i arg5
argument is too big (the limit is implementation-specific and varies between
kernel versions, but it is deemed big enough for all valid algorithm names).
.tp
.b einval
.\" commit 4f9dabfaf8df971f8a3b6aa324f8f817be38d538
.i operation
was
.b keyctl_dh_compute