Lines Matching refs:req
34 static void ecdh_complete(struct crypto_async_request *req, int err) in ecdh_complete() argument
36 struct ecdh_completion *res = req->data; in ecdh_complete()
57 struct kpp_request *req; in compute_ecdh_secret() local
76 req = kpp_request_alloc(tfm, GFP_KERNEL); in compute_ecdh_secret()
77 if (!req) in compute_ecdh_secret()
107 kpp_request_set_input(req, &src, 64); in compute_ecdh_secret()
108 kpp_request_set_output(req, &dst, 32); in compute_ecdh_secret()
109 kpp_request_set_callback(req, CRYPTO_TFM_REQ_MAY_BACKLOG, in compute_ecdh_secret()
111 err = crypto_kpp_compute_shared_secret(req); in compute_ecdh_secret()
128 kpp_request_free(req); in compute_ecdh_secret()
139 struct kpp_request *req; in generate_ecdh_keys() local
160 req = kpp_request_alloc(tfm, GFP_KERNEL); in generate_ecdh_keys()
161 if (!req) in generate_ecdh_keys()
186 kpp_request_set_input(req, NULL, 0); in generate_ecdh_keys()
187 kpp_request_set_output(req, &dst, 64); in generate_ecdh_keys()
188 kpp_request_set_callback(req, CRYPTO_TFM_REQ_MAY_BACKLOG, in generate_ecdh_keys()
191 err = crypto_kpp_generate_public_key(req); in generate_ecdh_keys()
220 kpp_request_free(req); in generate_ecdh_keys()