Lines Matching refs:kdfcopy
229 struct keyctl_kdf_params *kdfcopy) in __keyctl_dh_compute() argument
254 if (kdfcopy) { in __keyctl_dh_compute()
257 if (memchr_inv(kdfcopy->__spare, 0, sizeof(kdfcopy->__spare))) { in __keyctl_dh_compute()
263 kdfcopy->otherinfolen > KEYCTL_KDF_MAX_OI_LEN) { in __keyctl_dh_compute()
269 hashname = strndup_user(kdfcopy->hashname, CRYPTO_MAX_ALG_NAME); in __keyctl_dh_compute()
327 if (!kdfcopy) { in __keyctl_dh_compute()
341 outbuf = kzalloc(kdfcopy ? (outlen + kdfcopy->otherinfolen) : outlen, in __keyctl_dh_compute()
375 if (kdfcopy) { in __keyctl_dh_compute()
380 if (copy_from_user(outbuf + req->dst_len, kdfcopy->otherinfo, in __keyctl_dh_compute()
381 kdfcopy->otherinfolen) != 0) { in __keyctl_dh_compute()
387 req->dst_len + kdfcopy->otherinfolen, in __keyctl_dh_compute()
414 struct keyctl_kdf_params kdfcopy; in keyctl_dh_compute() local
419 if (copy_from_user(&kdfcopy, kdf, sizeof(kdfcopy)) != 0) in keyctl_dh_compute()
422 return __keyctl_dh_compute(params, buffer, buflen, &kdfcopy); in keyctl_dh_compute()