Lines Matching refs:fallback_tfm
23 skcipher_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in aspeed_crypto_do_fallback()
446 crypto_skcipher_clear_flags(ctx->fallback_tfm, CRYPTO_TFM_REQ_MASK); in aspeed_des_setkey()
447 crypto_skcipher_set_flags(ctx->fallback_tfm, cipher->base.crt_flags & in aspeed_des_setkey()
450 return crypto_skcipher_setkey(ctx->fallback_tfm, key, keylen); in aspeed_des_setkey()
634 crypto_skcipher_clear_flags(ctx->fallback_tfm, CRYPTO_TFM_REQ_MASK); in aspeed_aes_setkey()
635 crypto_skcipher_set_flags(ctx->fallback_tfm, cipher->base.crt_flags & in aspeed_aes_setkey()
638 return crypto_skcipher_setkey(ctx->fallback_tfm, key, keylen); in aspeed_aes_setkey()
705 ctx->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_ASYNC | in aspeed_crypto_cra_init()
707 if (IS_ERR(ctx->fallback_tfm)) { in aspeed_crypto_cra_init()
709 name, PTR_ERR(ctx->fallback_tfm)); in aspeed_crypto_cra_init()
710 return PTR_ERR(ctx->fallback_tfm); in aspeed_crypto_cra_init()
714 crypto_skcipher_reqsize(ctx->fallback_tfm)); in aspeed_crypto_cra_init()
729 crypto_free_skcipher(ctx->fallback_tfm); in aspeed_crypto_cra_exit()