Lines Matching refs:fallback_cipher
2583 if (!ctx->fallback_cipher) in aead_do_fallback()
2587 aead_request_set_tfm(subreq, ctx->fallback_cipher); in aead_do_fallback()
2787 if (ctx->fallback_cipher) { in aead_authenc_setkey()
2790 ctx->fallback_cipher->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; in aead_authenc_setkey()
2791 ctx->fallback_cipher->base.crt_flags |= in aead_authenc_setkey()
2793 ret = crypto_aead_setkey(ctx->fallback_cipher, key, keylen); in aead_authenc_setkey()
2854 if (ctx->fallback_cipher) { in aead_gcm_ccm_setkey()
2857 ctx->fallback_cipher->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; in aead_gcm_ccm_setkey()
2858 ctx->fallback_cipher->base.crt_flags |= in aead_gcm_ccm_setkey()
2860 ret = crypto_aead_setkey(ctx->fallback_cipher, key, in aead_gcm_ccm_setkey()
2992 if (ctx->fallback_cipher) { in aead_setauthsize()
2995 ret = crypto_aead_setauthsize(ctx->fallback_cipher, authsize); in aead_setauthsize()
4103 ctx->fallback_cipher = NULL; in generic_cra_init()
4180 ctx->fallback_cipher = crypto_alloc_aead(alg->cra_name, 0, in aead_cra_init()
4183 if (IS_ERR(ctx->fallback_cipher)) { in aead_cra_init()
4186 return PTR_ERR(ctx->fallback_cipher); in aead_cra_init()
4189 reqsize += crypto_aead_reqsize(ctx->fallback_cipher); in aead_cra_init()
4215 if (ctx->fallback_cipher) { in aead_cra_exit()
4216 crypto_free_aead(ctx->fallback_cipher); in aead_cra_exit()
4217 ctx->fallback_cipher = NULL; in aead_cra_exit()