Lines Matching refs:req
75 static void dh_crypto_done(struct crypto_async_request *req, int err) in dh_crypto_done() argument
77 struct dh_completion *compl = req->data; in dh_crypto_done()
252 struct kpp_request *req; in __keyctl_dh_compute() local
362 req = kpp_request_alloc(tfm, GFP_KERNEL); in __keyctl_dh_compute()
363 if (!req) { in __keyctl_dh_compute()
368 kpp_request_set_input(req, NULL, 0); in __keyctl_dh_compute()
369 kpp_request_set_output(req, &outsg, outlen); in __keyctl_dh_compute()
371 kpp_request_set_callback(req, CRYPTO_TFM_REQ_MAY_BACKLOG | in __keyctl_dh_compute()
379 ret = crypto_kpp_generate_public_key(req); in __keyctl_dh_compute()
392 if (copy_from_user(outbuf + req->dst_len, kdfcopy->otherinfo, in __keyctl_dh_compute()
399 req->dst_len + kdfcopy->otherinfolen, in __keyctl_dh_compute()
400 outlen - req->dst_len); in __keyctl_dh_compute()
401 } else if (copy_to_user(buffer, outbuf, req->dst_len) == 0) { in __keyctl_dh_compute()
402 ret = req->dst_len; in __keyctl_dh_compute()
408 kpp_request_free(req); in __keyctl_dh_compute()