Lines Matching defs:rctx

471 				      const struct atmel_aes_reqctx *rctx)
474 dd->flags = (dd->flags & AES_FLAGS_PERSISTENT) | rctx->mode;
489 struct atmel_aes_reqctx *rctx = skcipher_request_ctx(req);
496 if (rctx->mode & AES_FLAGS_ENCRYPT)
500 memcpy(req->iv, rctx->lastc, ivsize);
532 struct atmel_aes_reqctx *rctx = skcipher_request_ctx(req);
543 (rctx->mode & AES_FLAGS_OPMODE_MASK) != AES_FLAGS_ECB) {
544 if ((rctx->mode & AES_FLAGS_OPMODE_MASK) != AES_FLAGS_CTR)
977 struct atmel_aes_reqctx *rctx = skcipher_request_ctx(req);
982 atmel_aes_set_mode(dd, rctx);
1058 struct atmel_aes_reqctx *rctx = skcipher_request_ctx(req);
1061 atmel_aes_set_mode(dd, rctx);
1075 struct atmel_aes_reqctx *rctx = skcipher_request_ctx(req);
1079 skcipher_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm);
1080 skcipher_request_set_callback(&rctx->fallback_req, req->base.flags,
1082 skcipher_request_set_crypt(&rctx->fallback_req, req->src, req->dst,
1085 return enc ? crypto_skcipher_encrypt(&rctx->fallback_req) :
1086 crypto_skcipher_decrypt(&rctx->fallback_req);
1093 struct atmel_aes_reqctx *rctx;
1139 rctx = skcipher_request_ctx(req);
1140 rctx->mode = mode;
1147 scatterwalk_map_and_copy(rctx->lastc, req->src,
1509 struct atmel_aes_reqctx *rctx = aead_request_ctx(req);
1516 atmel_aes_set_mode(dd, rctx);
1724 struct atmel_aes_reqctx *rctx;
1730 rctx = aead_request_ctx(req);
1731 rctx->mode = AES_FLAGS_GCM | mode;
1816 struct atmel_aes_reqctx *rctx = skcipher_request_ctx(req);
1820 atmel_aes_set_mode(dd, rctx);
1966 struct atmel_aes_authenc_reqctx *rctx = aead_request_ctx(req);
1969 atmel_sha_authenc_abort(&rctx->auth_req);
1976 struct atmel_aes_authenc_reqctx *rctx = aead_request_ctx(req);
1981 atmel_aes_set_mode(dd, &rctx->base);
1987 return atmel_sha_authenc_schedule(&rctx->auth_req, ctx->auth,
1995 struct atmel_aes_authenc_reqctx *rctx = aead_request_ctx(req);
2006 return atmel_sha_authenc_init(&rctx->auth_req,
2008 rctx->textlen,
2016 struct atmel_aes_authenc_reqctx *rctx = aead_request_ctx(req);
2028 src = scatterwalk_ffwd(rctx->src, req->src, req->assoclen);
2032 dst = scatterwalk_ffwd(rctx->dst, req->dst, req->assoclen);
2051 return atmel_aes_dma_start(dd, src, dst, rctx->textlen,
2058 struct atmel_aes_authenc_reqctx *rctx = aead_request_ctx(req);
2062 return atmel_sha_authenc_final(&rctx->auth_req,
2063 rctx->digest, sizeof(rctx->digest),
2071 struct atmel_aes_authenc_reqctx *rctx = aead_request_ctx(req);
2074 u32 idigest[SHA512_DIGEST_SIZE / sizeof(u32)], *odigest = rctx->digest;
2082 offs = req->assoclen + rctx->textlen;
2188 struct atmel_aes_authenc_reqctx *rctx = aead_request_ctx(req);
2197 rctx->textlen = req->cryptlen - (enc ? 0 : authsize);
2204 if (!rctx->textlen && !req->assoclen)
2207 rctx->base.mode = mode;