Lines Matching refs:fallback_cipher
2587 if (!ctx->fallback_cipher) in aead_do_fallback()
2591 aead_request_set_tfm(subreq, ctx->fallback_cipher); in aead_do_fallback()
2791 if (ctx->fallback_cipher) { in aead_authenc_setkey()
2794 ctx->fallback_cipher->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; in aead_authenc_setkey()
2795 ctx->fallback_cipher->base.crt_flags |= in aead_authenc_setkey()
2797 ret = crypto_aead_setkey(ctx->fallback_cipher, key, keylen); in aead_authenc_setkey()
2858 if (ctx->fallback_cipher) { in aead_gcm_ccm_setkey()
2861 ctx->fallback_cipher->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; in aead_gcm_ccm_setkey()
2862 ctx->fallback_cipher->base.crt_flags |= in aead_gcm_ccm_setkey()
2864 ret = crypto_aead_setkey(ctx->fallback_cipher, key, in aead_gcm_ccm_setkey()
2996 if (ctx->fallback_cipher) { in aead_setauthsize()
2999 ret = crypto_aead_setauthsize(ctx->fallback_cipher, authsize); in aead_setauthsize()
4107 ctx->fallback_cipher = NULL; in generic_cra_init()
4184 ctx->fallback_cipher = crypto_alloc_aead(alg->cra_name, 0, in aead_cra_init()
4187 if (IS_ERR(ctx->fallback_cipher)) { in aead_cra_init()
4190 return PTR_ERR(ctx->fallback_cipher); in aead_cra_init()
4193 reqsize += crypto_aead_reqsize(ctx->fallback_cipher); in aead_cra_init()
4219 if (ctx->fallback_cipher) { in aead_cra_exit()
4220 crypto_free_aead(ctx->fallback_cipher); in aead_cra_exit()
4221 ctx->fallback_cipher = NULL; in aead_cra_exit()