Lines Matching defs:areq

360 static int artpec6_crypto_prepare_aead(struct aead_request *areq);
361 static int artpec6_crypto_prepare_crypto(struct skcipher_request *areq);
362 static int artpec6_crypto_prepare_hash(struct ahash_request *areq);
1308 static int artpec6_crypto_prepare_hash(struct ahash_request *areq)
1310 struct artpec6_hashalg_context *ctx = crypto_tfm_ctx(areq->base.tfm);
1311 struct artpec6_hash_request_context *req_ctx = ahash_request_ctx(areq);
1312 size_t digestsize = crypto_ahash_digestsize(crypto_ahash_reqtfm(areq));
1315 crypto_ahash_tfm(crypto_ahash_reqtfm(areq)));
1401 size_t total_bytes = areq->nbytes + req_ctx->partial_bytes;
1427 artpec6_crypto_walk_init(&walk, areq->src);
1437 size_t sg_rem = areq->nbytes - sg_skip;
1439 sg_pcopy_to_buffer(areq->src, sg_nents(areq->src),
1496 error = artpec6_crypto_setup_in_descr(common, areq->result,
1664 static int artpec6_crypto_prepare_crypto(struct skcipher_request *areq)
1668 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(areq);
1680 req_ctx = skcipher_request_ctx(areq);
1782 ret = artpec6_crypto_setup_out_descr(common, areq->iv, iv_len,
1788 artpec6_crypto_walk_init(&walk, areq->src);
1789 ret = artpec6_crypto_setup_sg_descrs_out(common, &walk, areq->cryptlen);
1794 artpec6_crypto_walk_init(&walk, areq->dst);
1795 ret = artpec6_crypto_setup_sg_descrs_in(common, &walk, areq->cryptlen);
1802 size_t pad = ALIGN(areq->cryptlen, AES_BLOCK_SIZE) -
1803 areq->cryptlen;
1831 static int artpec6_crypto_prepare_aead(struct aead_request *areq)
1836 struct artpec6_cryptotfm_context *ctx = crypto_tfm_ctx(areq->base.tfm);
1837 struct artpec6_crypto_aead_req_ctx *req_ctx = aead_request_ctx(areq);
1838 struct crypto_aead *cipher = crypto_aead_reqtfm(areq);
1908 input_length = areq->cryptlen;
1914 __cpu_to_be64(8*areq->assoclen);
1919 memcpy(req_ctx->hw_ctx.J0, areq->iv, crypto_aead_ivsize(cipher));
1931 artpec6_crypto_walk_init(&walk, areq->src);
1934 count = areq->assoclen;
1939 if (!IS_ALIGNED(areq->assoclen, 16)) {
1940 size_t assoc_pad = 16 - (areq->assoclen % 16);
1972 size_t output_len = areq->cryptlen;
1977 artpec6_crypto_walk_init(&walk, areq->dst);
1980 count = artpec6_crypto_walk_advance(&walk, areq->assoclen);
2188 struct aead_request *areq = container_of(req,
2190 struct crypto_aead *aead = crypto_aead_reqtfm(areq);
2191 struct artpec6_crypto_aead_req_ctx *req_ctx = aead_request_ctx(areq);
2197 sg_pcopy_to_buffer(areq->src,
2198 sg_nents(areq->src),
2201 areq->assoclen + areq->cryptlen -
2218 aead_request_complete(areq, result);