Lines Matching refs:req
71 static void dh_crypto_done(struct crypto_async_request *req, int err) in dh_crypto_done() argument
73 struct dh_completion *compl = req->data; in dh_crypto_done()
240 struct kpp_request *req; in __keyctl_dh_compute() local
350 req = kpp_request_alloc(tfm, GFP_KERNEL); in __keyctl_dh_compute()
351 if (!req) { in __keyctl_dh_compute()
356 kpp_request_set_input(req, NULL, 0); in __keyctl_dh_compute()
357 kpp_request_set_output(req, &outsg, outlen); in __keyctl_dh_compute()
359 kpp_request_set_callback(req, CRYPTO_TFM_REQ_MAY_BACKLOG | in __keyctl_dh_compute()
367 ret = crypto_kpp_generate_public_key(req); in __keyctl_dh_compute()
380 if (copy_from_user(outbuf + req->dst_len, kdfcopy->otherinfo, in __keyctl_dh_compute()
387 req->dst_len + kdfcopy->otherinfolen, in __keyctl_dh_compute()
388 outlen - req->dst_len); in __keyctl_dh_compute()
389 } else if (copy_to_user(buffer, outbuf, req->dst_len) == 0) { in __keyctl_dh_compute()
390 ret = req->dst_len; in __keyctl_dh_compute()
396 kpp_request_free(req); in __keyctl_dh_compute()