Lines Matching refs:fallback_tfm
67 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in sun8i_ce_cipher_fallback()
388 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in sun8i_ce_cipher_init()
389 if (IS_ERR(op->fallback_tfm)) { in sun8i_ce_cipher_init()
391 name, PTR_ERR(op->fallback_tfm)); in sun8i_ce_cipher_init()
392 return PTR_ERR(op->fallback_tfm); in sun8i_ce_cipher_init()
396 crypto_skcipher_reqsize(op->fallback_tfm); in sun8i_ce_cipher_init()
401 crypto_tfm_alg_driver_name(crypto_skcipher_tfm(op->fallback_tfm))); in sun8i_ce_cipher_init()
414 crypto_free_skcipher(op->fallback_tfm); in sun8i_ce_cipher_init()
423 crypto_free_skcipher(op->fallback_tfm); in sun8i_ce_cipher_exit()
450 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sun8i_ce_aes_setkey()
451 crypto_skcipher_set_flags(op->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); in sun8i_ce_aes_setkey()
453 return crypto_skcipher_setkey(op->fallback_tfm, key, keylen); in sun8i_ce_aes_setkey()
472 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sun8i_ce_des3_setkey()
473 crypto_skcipher_set_flags(op->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); in sun8i_ce_des3_setkey()
475 return crypto_skcipher_setkey(op->fallback_tfm, key, keylen); in sun8i_ce_des3_setkey()