Lines Matching refs:fallback

48 	} fallback;  member
65 struct crypto_blkcipher *fallback; member
101 sctx->fallback.cip->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; in setkey_fallback_cip()
102 sctx->fallback.cip->base.crt_flags |= (tfm->crt_flags & in setkey_fallback_cip()
105 ret = crypto_cipher_setkey(sctx->fallback.cip, in_key, key_len); in setkey_fallback_cip()
108 tfm->crt_flags |= (sctx->fallback.cip->base.crt_flags & in setkey_fallback_cip()
141 crypto_cipher_encrypt_one(sctx->fallback.cip, out, in); in aes_encrypt()
166 crypto_cipher_decrypt_one(sctx->fallback.cip, out, in); in aes_decrypt()
191 sctx->fallback.cip = crypto_alloc_cipher(name, 0, in fallback_init_cip()
194 if (IS_ERR(sctx->fallback.cip)) { in fallback_init_cip()
197 return PTR_ERR(sctx->fallback.cip); in fallback_init_cip()
207 crypto_free_cipher(sctx->fallback.cip); in fallback_exit_cip()
208 sctx->fallback.cip = NULL; in fallback_exit_cip()
239 sctx->fallback.blk->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; in setkey_fallback_blk()
240 sctx->fallback.blk->base.crt_flags |= (tfm->crt_flags & in setkey_fallback_blk()
243 ret = crypto_blkcipher_setkey(sctx->fallback.blk, key, len); in setkey_fallback_blk()
246 tfm->crt_flags |= (sctx->fallback.blk->base.crt_flags & in setkey_fallback_blk()
261 desc->tfm = sctx->fallback.blk; in fallback_blk_dec()
278 desc->tfm = sctx->fallback.blk; in fallback_blk_enc()
372 sctx->fallback.blk = crypto_alloc_blkcipher(name, 0, in fallback_init_blk()
375 if (IS_ERR(sctx->fallback.blk)) { in fallback_init_blk()
378 return PTR_ERR(sctx->fallback.blk); in fallback_init_blk()
388 crypto_free_blkcipher(sctx->fallback.blk); in fallback_exit_blk()
389 sctx->fallback.blk = NULL; in fallback_exit_blk()
538 xts_ctx->fallback->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; in xts_fallback_setkey()
539 xts_ctx->fallback->base.crt_flags |= (tfm->crt_flags & in xts_fallback_setkey()
542 ret = crypto_blkcipher_setkey(xts_ctx->fallback, key, len); in xts_fallback_setkey()
545 tfm->crt_flags |= (xts_ctx->fallback->base.crt_flags & in xts_fallback_setkey()
560 desc->tfm = xts_ctx->fallback; in xts_fallback_decrypt()
577 desc->tfm = xts_ctx->fallback; in xts_fallback_encrypt()
696 xts_ctx->fallback = crypto_alloc_blkcipher(name, 0, in xts_fallback_init()
699 if (IS_ERR(xts_ctx->fallback)) { in xts_fallback_init()
702 return PTR_ERR(xts_ctx->fallback); in xts_fallback_init()
711 crypto_free_blkcipher(xts_ctx->fallback); in xts_fallback_exit()
712 xts_ctx->fallback = NULL; in xts_fallback_exit()