Home
last modified time | relevance | path

Searched refs:kdfcopy (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/security/keys/
Dcompat_dh.c24 struct keyctl_kdf_params kdfcopy; in compat_keyctl_dh_compute() local
33 kdfcopy.hashname = compat_ptr(compat_kdfcopy.hashname); in compat_keyctl_dh_compute()
34 kdfcopy.otherinfo = compat_ptr(compat_kdfcopy.otherinfo); in compat_keyctl_dh_compute()
35 kdfcopy.otherinfolen = compat_kdfcopy.otherinfolen; in compat_keyctl_dh_compute()
36 memcpy(kdfcopy.__spare, compat_kdfcopy.__spare, in compat_keyctl_dh_compute()
37 sizeof(kdfcopy.__spare)); in compat_keyctl_dh_compute()
39 return __keyctl_dh_compute(params, buffer, buflen, &kdfcopy); in compat_keyctl_dh_compute()
Ddh.c234 struct keyctl_kdf_params *kdfcopy) in __keyctl_dh_compute() argument
259 if (kdfcopy) { in __keyctl_dh_compute()
262 if (memchr_inv(kdfcopy->__spare, 0, sizeof(kdfcopy->__spare))) { in __keyctl_dh_compute()
268 kdfcopy->otherinfolen > KEYCTL_KDF_MAX_OI_LEN) { in __keyctl_dh_compute()
274 hashname = strndup_user(kdfcopy->hashname, CRYPTO_MAX_ALG_NAME); in __keyctl_dh_compute()
332 if (!kdfcopy) { in __keyctl_dh_compute()
346 outbuf = kzalloc(kdfcopy ? (outlen + kdfcopy->otherinfolen) : outlen, in __keyctl_dh_compute()
380 if (kdfcopy) { in __keyctl_dh_compute()
385 if (copy_from_user(outbuf + req->dst_len, kdfcopy->otherinfo, in __keyctl_dh_compute()
386 kdfcopy->otherinfolen) != 0) { in __keyctl_dh_compute()
[all …]