• Home
  • Raw
  • Download

Lines Matching refs:req

156 static void tcrypt_complete(struct crypto_async_request *req, int err)  in tcrypt_complete()  argument
158 struct tcrypt_result *res = req->data; in tcrypt_complete()
210 struct ahash_request *req; in ahash_partial_update() local
214 req = *preq; in ahash_partial_update()
216 crypto_ahash_reqtfm(req)); in ahash_partial_update()
223 ret = crypto_ahash_export(req, state); in ahash_partial_update()
229 ahash_request_free(req); in ahash_partial_update()
230 req = ahash_request_alloc(tfm, GFP_KERNEL); in ahash_partial_update()
231 if (!req) { in ahash_partial_update()
235 ahash_request_set_callback(req, in ahash_partial_update()
242 ahash_request_set_crypt(req, sg, result, template->tap[k]); in ahash_partial_update()
243 ret = crypto_ahash_import(req, state); in ahash_partial_update()
248 ret = wait_async_op(tresult, crypto_ahash_update(req)); in ahash_partial_update()
251 *preq = req; in ahash_partial_update()
255 ahash_request_free(req); in ahash_partial_update()
271 struct ahash_request *req; in __test_hash() local
288 req = ahash_request_alloc(tfm, GFP_KERNEL); in __test_hash()
289 if (!req) { in __test_hash()
294 ahash_request_set_callback(req, CRYPTO_TFM_REQ_MAY_BACKLOG, in __test_hash()
333 ahash_request_set_crypt(req, sg, result, template[i].psize); in __test_hash()
335 ret = wait_async_op(&tresult, crypto_ahash_digest(req)); in __test_hash()
342 ret = wait_async_op(&tresult, crypto_ahash_init(req)); in __test_hash()
348 ret = wait_async_op(&tresult, crypto_ahash_update(req)); in __test_hash()
354 ret = wait_async_op(&tresult, crypto_ahash_final(req)); in __test_hash()
419 ahash_request_set_crypt(req, sg, result, template[i].psize); in __test_hash()
420 ret = crypto_ahash_digest(req); in __test_hash()
485 ahash_request_set_crypt(req, sg, result, template[i].tap[0]); in __test_hash()
486 ret = wait_async_op(&tresult, crypto_ahash_init(req)); in __test_hash()
492 ret = wait_async_op(&tresult, crypto_ahash_update(req)); in __test_hash()
501 ret = ahash_partial_update(&req, tfm, &template[i], in __test_hash()
511 ret = wait_async_op(&tresult, crypto_ahash_final(req)); in __test_hash()
530 ahash_request_free(req); in __test_hash()
575 struct aead_request *req; in __test_aead() local
620 req = aead_request_alloc(tfm, GFP_KERNEL); in __test_aead()
621 if (!req) { in __test_aead()
627 aead_request_set_callback(req, CRYPTO_TFM_REQ_MAY_BACKLOG, in __test_aead()
703 aead_request_set_crypt(req, sg, (diff_dst) ? sgout : sg, in __test_aead()
706 aead_request_set_ad(req, template[i].alen); in __test_aead()
708 ret = enc ? crypto_aead_encrypt(req) : crypto_aead_decrypt(req); in __test_aead()
859 aead_request_set_crypt(req, sg, (diff_dst) ? sgout : sg, in __test_aead()
863 aead_request_set_ad(req, template[i].alen); in __test_aead()
865 ret = enc ? crypto_aead_encrypt(req) : crypto_aead_decrypt(req); in __test_aead()
942 aead_request_free(req); in __test_aead()
1076 struct skcipher_request *req; in __test_skcipher() local
1106 req = skcipher_request_alloc(tfm, GFP_KERNEL); in __test_skcipher()
1107 if (!req) { in __test_skcipher()
1113 skcipher_request_set_callback(req, CRYPTO_TFM_REQ_MAY_BACKLOG, in __test_skcipher()
1159 skcipher_request_set_crypt(req, sg, (diff_dst) ? sgout : sg, in __test_skcipher()
1161 ret = enc ? crypto_skcipher_encrypt(req) : in __test_skcipher()
1162 crypto_skcipher_decrypt(req); in __test_skcipher()
1266 skcipher_request_set_crypt(req, sg, (diff_dst) ? sgout : sg, in __test_skcipher()
1269 ret = enc ? crypto_skcipher_encrypt(req) : in __test_skcipher()
1270 crypto_skcipher_decrypt(req); in __test_skcipher()
1323 skcipher_request_free(req); in __test_skcipher()
1802 struct kpp_request *req; in do_test_kpp() local
1810 req = kpp_request_alloc(tfm, GFP_KERNEL); in do_test_kpp()
1811 if (!req) in do_test_kpp()
1828 kpp_request_set_input(req, NULL, 0); in do_test_kpp()
1830 kpp_request_set_output(req, &dst, out_len_max); in do_test_kpp()
1831 kpp_request_set_callback(req, CRYPTO_TFM_REQ_MAY_BACKLOG, in do_test_kpp()
1835 err = wait_async_op(&result, crypto_kpp_generate_public_key(req)); in do_test_kpp()
1842 if (memcmp(vec->expected_a_public, sg_virt(req->dst), in do_test_kpp()
1860 kpp_request_set_input(req, &src, vec->b_public_size); in do_test_kpp()
1861 kpp_request_set_output(req, &dst, out_len_max); in do_test_kpp()
1862 kpp_request_set_callback(req, CRYPTO_TFM_REQ_MAY_BACKLOG, in do_test_kpp()
1864 err = wait_async_op(&result, crypto_kpp_compute_shared_secret(req)); in do_test_kpp()
1874 if (memcmp(vec->expected_ss, sg_virt(req->dst), in do_test_kpp()
1886 kpp_request_free(req); in do_test_kpp()
1930 struct akcipher_request *req; in test_akcipher_one() local
1941 req = akcipher_request_alloc(tfm, GFP_KERNEL); in test_akcipher_one()
1942 if (!req) in test_akcipher_one()
1971 akcipher_request_set_crypt(req, src_tab, &dst, vecs->m_size, in test_akcipher_one()
1973 akcipher_request_set_callback(req, CRYPTO_TFM_REQ_MAY_BACKLOG, in test_akcipher_one()
1977 err = wait_async_op(&result, crypto_akcipher_encrypt(req)); in test_akcipher_one()
1982 if (req->dst_len != vecs->c_size) { in test_akcipher_one()
2013 akcipher_request_set_crypt(req, &src, &dst, vecs->c_size, out_len_max); in test_akcipher_one()
2016 err = wait_async_op(&result, crypto_akcipher_decrypt(req)); in test_akcipher_one()
2021 out_len = req->dst_len; in test_akcipher_one()
2040 akcipher_request_free(req); in test_akcipher_one()