Lines Matching refs:fallback_tfm
103 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in sun8i_ce_cipher_fallback()
412 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in sun8i_ce_cipher_init()
413 if (IS_ERR(op->fallback_tfm)) { in sun8i_ce_cipher_init()
415 name, PTR_ERR(op->fallback_tfm)); in sun8i_ce_cipher_init()
416 return PTR_ERR(op->fallback_tfm); in sun8i_ce_cipher_init()
420 crypto_skcipher_reqsize(op->fallback_tfm); in sun8i_ce_cipher_init()
423 crypto_tfm_alg_driver_name(crypto_skcipher_tfm(op->fallback_tfm)), in sun8i_ce_cipher_init()
437 crypto_free_skcipher(op->fallback_tfm); in sun8i_ce_cipher_init()
446 crypto_free_skcipher(op->fallback_tfm); in sun8i_ce_cipher_exit()
473 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sun8i_ce_aes_setkey()
474 crypto_skcipher_set_flags(op->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); in sun8i_ce_aes_setkey()
476 return crypto_skcipher_setkey(op->fallback_tfm, key, keylen); in sun8i_ce_aes_setkey()
495 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sun8i_ce_des3_setkey()
496 crypto_skcipher_set_flags(op->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); in sun8i_ce_des3_setkey()
498 return crypto_skcipher_setkey(op->fallback_tfm, key, keylen); in sun8i_ce_des3_setkey()