Lines Matching refs:fallback
47 } fallback; member
64 struct crypto_blkcipher *fallback; member
100 sctx->fallback.cip->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; in setkey_fallback_cip()
101 sctx->fallback.cip->base.crt_flags |= (tfm->crt_flags & in setkey_fallback_cip()
104 ret = crypto_cipher_setkey(sctx->fallback.cip, in_key, key_len); in setkey_fallback_cip()
107 tfm->crt_flags |= (sctx->fallback.cip->base.crt_flags & in setkey_fallback_cip()
140 crypto_cipher_encrypt_one(sctx->fallback.cip, out, in); in aes_encrypt()
165 crypto_cipher_decrypt_one(sctx->fallback.cip, out, in); in aes_decrypt()
190 sctx->fallback.cip = crypto_alloc_cipher(name, 0, in fallback_init_cip()
193 if (IS_ERR(sctx->fallback.cip)) { in fallback_init_cip()
196 return PTR_ERR(sctx->fallback.cip); in fallback_init_cip()
206 crypto_free_cipher(sctx->fallback.cip); in fallback_exit_cip()
207 sctx->fallback.cip = NULL; in fallback_exit_cip()
238 sctx->fallback.blk->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; in setkey_fallback_blk()
239 sctx->fallback.blk->base.crt_flags |= (tfm->crt_flags & in setkey_fallback_blk()
242 ret = crypto_blkcipher_setkey(sctx->fallback.blk, key, len); in setkey_fallback_blk()
245 tfm->crt_flags |= (sctx->fallback.blk->base.crt_flags & in setkey_fallback_blk()
260 desc->tfm = sctx->fallback.blk; in fallback_blk_dec()
277 desc->tfm = sctx->fallback.blk; in fallback_blk_enc()
371 sctx->fallback.blk = crypto_alloc_blkcipher(name, 0, in fallback_init_blk()
374 if (IS_ERR(sctx->fallback.blk)) { in fallback_init_blk()
377 return PTR_ERR(sctx->fallback.blk); in fallback_init_blk()
387 crypto_free_blkcipher(sctx->fallback.blk); in fallback_exit_blk()
388 sctx->fallback.blk = NULL; in fallback_exit_blk()
537 xts_ctx->fallback->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; in xts_fallback_setkey()
538 xts_ctx->fallback->base.crt_flags |= (tfm->crt_flags & in xts_fallback_setkey()
541 ret = crypto_blkcipher_setkey(xts_ctx->fallback, key, len); in xts_fallback_setkey()
544 tfm->crt_flags |= (xts_ctx->fallback->base.crt_flags & in xts_fallback_setkey()
559 desc->tfm = xts_ctx->fallback; in xts_fallback_decrypt()
576 desc->tfm = xts_ctx->fallback; in xts_fallback_encrypt()
695 xts_ctx->fallback = crypto_alloc_blkcipher(name, 0, in xts_fallback_init()
698 if (IS_ERR(xts_ctx->fallback)) { in xts_fallback_init()
701 return PTR_ERR(xts_ctx->fallback); in xts_fallback_init()
710 crypto_free_blkcipher(xts_ctx->fallback); in xts_fallback_exit()
711 xts_ctx->fallback = NULL; in xts_fallback_exit()