Lines Matching refs:fallback_tfm
108 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in sun8i_ce_cipher_fallback()
427 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in sun8i_ce_cipher_init()
428 if (IS_ERR(op->fallback_tfm)) { in sun8i_ce_cipher_init()
430 name, PTR_ERR(op->fallback_tfm)); in sun8i_ce_cipher_init()
431 return PTR_ERR(op->fallback_tfm); in sun8i_ce_cipher_init()
435 crypto_skcipher_reqsize(op->fallback_tfm)); in sun8i_ce_cipher_init()
438 crypto_tfm_alg_driver_name(crypto_skcipher_tfm(op->fallback_tfm)), in sun8i_ce_cipher_init()
448 crypto_free_skcipher(op->fallback_tfm); in sun8i_ce_cipher_init()
457 crypto_free_skcipher(op->fallback_tfm); in sun8i_ce_cipher_exit()
484 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sun8i_ce_aes_setkey()
485 crypto_skcipher_set_flags(op->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); in sun8i_ce_aes_setkey()
487 return crypto_skcipher_setkey(op->fallback_tfm, key, keylen); in sun8i_ce_aes_setkey()
506 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sun8i_ce_des3_setkey()
507 crypto_skcipher_set_flags(op->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); in sun8i_ce_des3_setkey()
509 return crypto_skcipher_setkey(op->fallback_tfm, key, keylen); in sun8i_ce_des3_setkey()