Lines Matching refs:fallback
153 struct crypto_ablkcipher *fallback; member
649 ctx->fallback->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; in sahara_aes_setkey()
650 ctx->fallback->base.crt_flags |= in sahara_aes_setkey()
653 ret = crypto_ablkcipher_setkey(ctx->fallback, key, keylen); in sahara_aes_setkey()
659 (ctx->fallback->base.crt_flags & CRYPTO_TFM_RES_MASK); in sahara_aes_setkey()
699 ablkcipher_request_set_tfm(req, ctx->fallback); in sahara_aes_ecb_encrypt()
717 ablkcipher_request_set_tfm(req, ctx->fallback); in sahara_aes_ecb_decrypt()
735 ablkcipher_request_set_tfm(req, ctx->fallback); in sahara_aes_cbc_encrypt()
753 ablkcipher_request_set_tfm(req, ctx->fallback); in sahara_aes_cbc_decrypt()
767 ctx->fallback = crypto_alloc_ablkcipher(name, 0, in sahara_aes_cra_init()
769 if (IS_ERR(ctx->fallback)) { in sahara_aes_cra_init()
771 return PTR_ERR(ctx->fallback); in sahara_aes_cra_init()
783 if (ctx->fallback) in sahara_aes_cra_exit()
784 crypto_free_ablkcipher(ctx->fallback); in sahara_aes_cra_exit()
785 ctx->fallback = NULL; in sahara_aes_cra_exit()