Lines Matching refs:fallback_tfm
66 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in sun8i_ce_cipher_fallback()
385 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in sun8i_ce_cipher_init()
386 if (IS_ERR(op->fallback_tfm)) { in sun8i_ce_cipher_init()
388 name, PTR_ERR(op->fallback_tfm)); in sun8i_ce_cipher_init()
389 return PTR_ERR(op->fallback_tfm); in sun8i_ce_cipher_init()
393 crypto_skcipher_reqsize(op->fallback_tfm); in sun8i_ce_cipher_init()
398 crypto_tfm_alg_driver_name(crypto_skcipher_tfm(op->fallback_tfm))); in sun8i_ce_cipher_init()
411 crypto_free_skcipher(op->fallback_tfm); in sun8i_ce_cipher_init()
420 crypto_free_skcipher(op->fallback_tfm); in sun8i_ce_cipher_exit()
447 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sun8i_ce_aes_setkey()
448 crypto_skcipher_set_flags(op->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); in sun8i_ce_aes_setkey()
450 return crypto_skcipher_setkey(op->fallback_tfm, key, keylen); in sun8i_ce_aes_setkey()
469 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sun8i_ce_des3_setkey()
470 crypto_skcipher_set_flags(op->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); in sun8i_ce_des3_setkey()
472 return crypto_skcipher_setkey(op->fallback_tfm, key, keylen); in sun8i_ce_des3_setkey()