Lines Matching refs:fallback_tfm
34 skcipher_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in aspeed_crypto_do_fallback()
457 crypto_skcipher_clear_flags(ctx->fallback_tfm, CRYPTO_TFM_REQ_MASK); in aspeed_des_setkey()
458 crypto_skcipher_set_flags(ctx->fallback_tfm, cipher->base.crt_flags & in aspeed_des_setkey()
461 return crypto_skcipher_setkey(ctx->fallback_tfm, key, keylen); in aspeed_des_setkey()
645 crypto_skcipher_clear_flags(ctx->fallback_tfm, CRYPTO_TFM_REQ_MASK); in aspeed_aes_setkey()
646 crypto_skcipher_set_flags(ctx->fallback_tfm, cipher->base.crt_flags & in aspeed_aes_setkey()
649 return crypto_skcipher_setkey(ctx->fallback_tfm, key, keylen); in aspeed_aes_setkey()
716 ctx->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_ASYNC | in aspeed_crypto_cra_init()
718 if (IS_ERR(ctx->fallback_tfm)) { in aspeed_crypto_cra_init()
720 name, PTR_ERR(ctx->fallback_tfm)); in aspeed_crypto_cra_init()
721 return PTR_ERR(ctx->fallback_tfm); in aspeed_crypto_cra_init()
725 crypto_skcipher_reqsize(ctx->fallback_tfm)); in aspeed_crypto_cra_init()
736 crypto_free_skcipher(ctx->fallback_tfm); in aspeed_crypto_cra_exit()