Lines Matching refs:fallback
153 struct crypto_ablkcipher *fallback; member
623 ctx->fallback->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; in sahara_aes_setkey()
624 ctx->fallback->base.crt_flags |= in sahara_aes_setkey()
627 ret = crypto_ablkcipher_setkey(ctx->fallback, key, keylen); in sahara_aes_setkey()
633 (ctx->fallback->base.crt_flags & CRYPTO_TFM_RES_MASK); in sahara_aes_setkey()
673 ablkcipher_request_set_tfm(req, ctx->fallback); in sahara_aes_ecb_encrypt()
691 ablkcipher_request_set_tfm(req, ctx->fallback); in sahara_aes_ecb_decrypt()
709 ablkcipher_request_set_tfm(req, ctx->fallback); in sahara_aes_cbc_encrypt()
727 ablkcipher_request_set_tfm(req, ctx->fallback); in sahara_aes_cbc_decrypt()
741 ctx->fallback = crypto_alloc_ablkcipher(name, 0, in sahara_aes_cra_init()
743 if (IS_ERR(ctx->fallback)) { in sahara_aes_cra_init()
745 return PTR_ERR(ctx->fallback); in sahara_aes_cra_init()
757 if (ctx->fallback) in sahara_aes_cra_exit()
758 crypto_free_ablkcipher(ctx->fallback); in sahara_aes_cra_exit()
759 ctx->fallback = NULL; in sahara_aes_cra_exit()