Lines Matching refs:req
105 static void tcrypt_complete(struct crypto_async_request *req, int err) in tcrypt_complete() argument
107 struct tcrypt_result *res = req->data; in tcrypt_complete()
123 struct ahash_request *req; in test_hash() local
130 req = ahash_request_alloc(tfm, GFP_KERNEL); in test_hash()
131 if (!req) { in test_hash()
137 ahash_request_set_callback(req, CRYPTO_TFM_REQ_MAY_BACKLOG, in test_hash()
160 ahash_request_set_crypt(req, sg, result, template[i].psize); in test_hash()
161 ret = crypto_ahash_digest(req); in test_hash()
222 ahash_request_set_crypt(req, sg, result, in test_hash()
224 ret = crypto_ahash_digest(req); in test_hash()
258 ahash_request_free(req); in test_hash()
271 struct aead_request *req; in test_aead() local
288 req = aead_request_alloc(tfm, GFP_KERNEL); in test_aead()
289 if (!req) { in test_aead()
296 aead_request_set_callback(req, CRYPTO_TFM_REQ_MAY_BACKLOG, in test_aead()
347 aead_request_set_crypt(req, sg, sg, in test_aead()
350 aead_request_set_assoc(req, asg, template[i].alen); in test_aead()
353 crypto_aead_encrypt(req) : in test_aead()
354 crypto_aead_decrypt(req); in test_aead()
464 aead_request_set_crypt(req, sg, sg, in test_aead()
468 aead_request_set_assoc(req, asg, template[i].alen); in test_aead()
471 crypto_aead_encrypt(req) : in test_aead()
472 crypto_aead_decrypt(req); in test_aead()
540 aead_request_free(req); in test_aead()
617 struct ablkcipher_request *req; in test_skcipher() local
631 req = ablkcipher_request_alloc(tfm, GFP_KERNEL); in test_skcipher()
632 if (!req) { in test_skcipher()
639 ablkcipher_request_set_callback(req, CRYPTO_TFM_REQ_MAY_BACKLOG, in test_skcipher()
672 ablkcipher_request_set_crypt(req, sg, sg, in test_skcipher()
675 crypto_ablkcipher_encrypt(req) : in test_skcipher()
676 crypto_ablkcipher_decrypt(req); in test_skcipher()
758 ablkcipher_request_set_crypt(req, sg, sg, in test_skcipher()
762 crypto_ablkcipher_encrypt(req) : in test_skcipher()
763 crypto_ablkcipher_decrypt(req); in test_skcipher()
819 ablkcipher_request_free(req); in test_skcipher()