Lines Matching refs:req
48 struct kpp_request *req; in compute_ecdh_secret() local
57 req = kpp_request_alloc(tfm, GFP_KERNEL); in compute_ecdh_secret()
58 if (!req) { in compute_ecdh_secret()
68 kpp_request_set_input(req, &src, 64); in compute_ecdh_secret()
69 kpp_request_set_output(req, &dst, 32); in compute_ecdh_secret()
70 kpp_request_set_callback(req, CRYPTO_TFM_REQ_MAY_BACKLOG, in compute_ecdh_secret()
72 err = crypto_kpp_compute_shared_secret(req); in compute_ecdh_secret()
84 kpp_request_free(req); in compute_ecdh_secret()
148 struct kpp_request *req; in generate_ecdh_public_key() local
157 req = kpp_request_alloc(tfm, GFP_KERNEL); in generate_ecdh_public_key()
158 if (!req) { in generate_ecdh_public_key()
164 kpp_request_set_input(req, NULL, 0); in generate_ecdh_public_key()
165 kpp_request_set_output(req, &dst, 64); in generate_ecdh_public_key()
166 kpp_request_set_callback(req, CRYPTO_TFM_REQ_MAY_BACKLOG, in generate_ecdh_public_key()
169 err = crypto_kpp_generate_public_key(req); in generate_ecdh_public_key()
181 kpp_request_free(req); in generate_ecdh_public_key()