Lines Matching refs:req
135 struct kpp_request *req; in __keyctl_dh_compute() local
245 req = kpp_request_alloc(tfm, GFP_KERNEL); in __keyctl_dh_compute()
246 if (!req) { in __keyctl_dh_compute()
251 kpp_request_set_input(req, NULL, 0); in __keyctl_dh_compute()
252 kpp_request_set_output(req, &outsg, outlen); in __keyctl_dh_compute()
253 kpp_request_set_callback(req, CRYPTO_TFM_REQ_MAY_BACKLOG | in __keyctl_dh_compute()
261 ret = crypto_kpp_generate_public_key(req); in __keyctl_dh_compute()
271 if (copy_from_user(outbuf + req->dst_len, kdfcopy->otherinfo, in __keyctl_dh_compute()
278 req->dst_len + kdfcopy->otherinfolen); in __keyctl_dh_compute()
279 } else if (copy_to_user(buffer, outbuf, req->dst_len) == 0) { in __keyctl_dh_compute()
280 ret = req->dst_len; in __keyctl_dh_compute()
286 kpp_request_free(req); in __keyctl_dh_compute()