is_encrypt
rctx->is_encrypt);
req_opts.is_inbound = !(rctx->is_encrypt);
if (rctx->is_encrypt) {
rctx->is_encrypt))
if (!rctx->is_encrypt)
chunksize, rctx->is_encrypt,
if (!rctx->is_encrypt)
if (spu_req_incl_icv(ctx->cipher.mode, rctx->is_encrypt)) {
(ctx->cipher.mode == CIPHER_MODE_CCM)) && !rctx->is_encrypt) {
if (rctx->is_encrypt) {
rctx->is_encrypt = encrypt;
if ((rctx->is_encrypt && (req->cryptlen == 0)) ||
(!rctx->is_encrypt && (req->cryptlen == ctx->digestsize))) {
static int aead_do_fallback(struct aead_request *req, bool is_encrypt)
flow_log("%s() enc:%u\n", __func__, is_encrypt);
return is_encrypt ? crypto_aead_encrypt(req) :
static int aead_enqueue(struct aead_request *req, bool is_encrypt)
flow_log("%s() enc:%u\n", __func__, is_encrypt);
rctx->is_encrypt = is_encrypt;
return aead_do_fallback(req, is_encrypt);
rctx->is_encrypt && chunk_start)
!rctx->is_encrypt) {
ctx->spu_req_hdr_len, !(rctx->is_encrypt),
bool is_encrypt;
unsigned int iv_len, bool is_encrypt);
bool is_encrypt, bool is_esp);
bool is_encrypt,
if (!is_encrypt)
bool is_encrypt)
bool is_encrypt)
if ((cipher_mode == CIPHER_MODE_GCM) && !is_encrypt)
if ((cipher_mode == CIPHER_MODE_CCM) && !is_encrypt)
bool is_encrypt);
bool spu_req_incl_icv(enum spu_cipher_mode cipher_mode, bool is_encrypt);
bool is_encrypt,
bool is_encrypt, bool is_esp)
bool is_encrypt)
if (is_encrypt)
bool is_encrypt);
bool is_encrypt, bool is_esp);
rctx->csr.aes.cmode = !is_encrypt(cryp);
if (is_encrypt(cryp)) {
if (is_encrypt(cryp)) {
return starfive_aes_do_fallback(req, is_encrypt(cryp));
!is_encrypt(cryp))
return starfive_aes_aead_do_fallback(req, is_encrypt(cryp));
if (is_encrypt(cryp)) {
size_bit = is_encrypt(cryp) ? cryp->areq->cryptlen :
if (is_encrypt(cryp)) {
is_encrypt(cryp))) {
return !is_encrypt(cryp);
return is_encrypt(cryp) ? cryp->areq->cryptlen :