• Home
  • Raw
  • Download

Lines Matching refs:req

136 static void tcrypt_complete(struct crypto_async_request *req, int err)  in tcrypt_complete()  argument
138 struct tcrypt_result *res = req->data; in tcrypt_complete()
174 static int do_one_async_hash_op(struct ahash_request *req, in do_one_async_hash_op() argument
194 struct ahash_request *req; in test_hash() local
205 req = ahash_request_alloc(tfm, GFP_KERNEL); in test_hash()
206 if (!req) { in test_hash()
211 ahash_request_set_callback(req, CRYPTO_TFM_REQ_MAY_BACKLOG, in test_hash()
239 ahash_request_set_crypt(req, sg, result, template[i].psize); in test_hash()
241 ret = do_one_async_hash_op(req, &tresult, in test_hash()
242 crypto_ahash_digest(req)); in test_hash()
249 ret = do_one_async_hash_op(req, &tresult, in test_hash()
250 crypto_ahash_init(req)); in test_hash()
256 ret = do_one_async_hash_op(req, &tresult, in test_hash()
257 crypto_ahash_update(req)); in test_hash()
263 ret = do_one_async_hash_op(req, &tresult, in test_hash()
264 crypto_ahash_final(req)); in test_hash()
318 ahash_request_set_crypt(req, sg, result, in test_hash()
320 ret = crypto_ahash_digest(req); in test_hash()
354 ahash_request_free(req); in test_hash()
370 struct aead_request *req; in __test_aead() local
412 req = aead_request_alloc(tfm, GFP_KERNEL); in __test_aead()
413 if (!req) { in __test_aead()
419 aead_request_set_callback(req, CRYPTO_TFM_REQ_MAY_BACKLOG, in __test_aead()
482 aead_request_set_crypt(req, sg, (diff_dst) ? sgout : sg, in __test_aead()
485 aead_request_set_assoc(req, asg, template[i].alen); in __test_aead()
488 crypto_aead_encrypt(req) : in __test_aead()
489 crypto_aead_decrypt(req); in __test_aead()
631 aead_request_set_crypt(req, sg, (diff_dst) ? sgout : sg, in __test_aead()
635 aead_request_set_assoc(req, asg, template[i].alen); in __test_aead()
638 crypto_aead_encrypt(req) : in __test_aead()
639 crypto_aead_decrypt(req); in __test_aead()
719 aead_request_free(req); in __test_aead()
829 struct ablkcipher_request *req; in __test_skcipher() local
858 req = ablkcipher_request_alloc(tfm, GFP_KERNEL); in __test_skcipher()
859 if (!req) { in __test_skcipher()
865 ablkcipher_request_set_callback(req, CRYPTO_TFM_REQ_MAY_BACKLOG, in __test_skcipher()
906 ablkcipher_request_set_crypt(req, sg, in __test_skcipher()
910 crypto_ablkcipher_encrypt(req) : in __test_skcipher()
911 crypto_ablkcipher_decrypt(req); in __test_skcipher()
1005 ablkcipher_request_set_crypt(req, sg, in __test_skcipher()
1010 crypto_ablkcipher_encrypt(req) : in __test_skcipher()
1011 crypto_ablkcipher_decrypt(req); in __test_skcipher()
1066 ablkcipher_request_free(req); in __test_skcipher()
1180 struct comp_request req; in test_pcomp() local
1200 req.next_in = ctemplate[i].input; in test_pcomp()
1201 req.avail_in = ctemplate[i].inlen / 2; in test_pcomp()
1202 req.next_out = result; in test_pcomp()
1203 req.avail_out = ctemplate[i].outlen / 2; in test_pcomp()
1205 res = crypto_compress_update(tfm, &req); in test_pcomp()
1206 if (res < 0 && (res != -EAGAIN || req.avail_in)) { in test_pcomp()
1215 req.avail_in += (ctemplate[i].inlen + 1) / 2; in test_pcomp()
1217 res = crypto_compress_update(tfm, &req); in test_pcomp()
1218 if (res < 0 && (res != -EAGAIN || req.avail_in)) { in test_pcomp()
1227 req.avail_out += COMP_BUF_SIZE - ctemplate[i].outlen / 2; in test_pcomp()
1229 res = crypto_compress_final(tfm, &req); in test_pcomp()
1237 if (COMP_BUF_SIZE - req.avail_out != ctemplate[i].outlen) { in test_pcomp()
1240 COMP_BUF_SIZE - req.avail_out, in test_pcomp()
1261 struct comp_request req; in test_pcomp() local
1281 req.next_in = dtemplate[i].input; in test_pcomp()
1282 req.avail_in = dtemplate[i].inlen / 2; in test_pcomp()
1283 req.next_out = result; in test_pcomp()
1284 req.avail_out = dtemplate[i].outlen / 2; in test_pcomp()
1286 res = crypto_decompress_update(tfm, &req); in test_pcomp()
1287 if (res < 0 && (res != -EAGAIN || req.avail_in)) { in test_pcomp()
1296 req.avail_in += (dtemplate[i].inlen + 1) / 2; in test_pcomp()
1298 res = crypto_decompress_update(tfm, &req); in test_pcomp()
1299 if (res < 0 && (res != -EAGAIN || req.avail_in)) { in test_pcomp()
1308 req.avail_out += COMP_BUF_SIZE - dtemplate[i].outlen / 2; in test_pcomp()
1310 res = crypto_decompress_final(tfm, &req); in test_pcomp()
1311 if (res < 0 && (res != -EAGAIN || req.avail_in)) { in test_pcomp()
1319 if (COMP_BUF_SIZE - req.avail_out != dtemplate[i].outlen) { in test_pcomp()
1322 algo, COMP_BUF_SIZE - req.avail_out, in test_pcomp()