Lines Matching refs:fallback_cipher
2581 if (!ctx->fallback_cipher) in aead_do_fallback()
2585 aead_request_set_tfm(subreq, ctx->fallback_cipher); in aead_do_fallback()
2785 if (ctx->fallback_cipher) { in aead_authenc_setkey()
2788 ctx->fallback_cipher->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; in aead_authenc_setkey()
2789 ctx->fallback_cipher->base.crt_flags |= in aead_authenc_setkey()
2791 ret = crypto_aead_setkey(ctx->fallback_cipher, key, keylen); in aead_authenc_setkey()
2852 if (ctx->fallback_cipher) { in aead_gcm_ccm_setkey()
2855 ctx->fallback_cipher->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; in aead_gcm_ccm_setkey()
2856 ctx->fallback_cipher->base.crt_flags |= in aead_gcm_ccm_setkey()
2858 ret = crypto_aead_setkey(ctx->fallback_cipher, key, in aead_gcm_ccm_setkey()
2990 if (ctx->fallback_cipher) { in aead_setauthsize()
2993 ret = crypto_aead_setauthsize(ctx->fallback_cipher, authsize); in aead_setauthsize()
4101 ctx->fallback_cipher = NULL; in generic_cra_init()
4178 ctx->fallback_cipher = crypto_alloc_aead(alg->cra_name, 0, in aead_cra_init()
4181 if (IS_ERR(ctx->fallback_cipher)) { in aead_cra_init()
4184 return PTR_ERR(ctx->fallback_cipher); in aead_cra_init()
4187 reqsize += crypto_aead_reqsize(ctx->fallback_cipher); in aead_cra_init()
4213 if (ctx->fallback_cipher) { in aead_cra_exit()
4214 crypto_free_aead(ctx->fallback_cipher); in aead_cra_exit()
4215 ctx->fallback_cipher = NULL; in aead_cra_exit()