Lines Matching refs:fallback_tfm

162 	skcipher_request_set_tfm(&ctx->fallback_req, op->fallback_tfm);  in sun4i_ss_cipher_poll_fallback()
547 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK); in sun4i_ss_cipher_init()
548 if (IS_ERR(op->fallback_tfm)) { in sun4i_ss_cipher_init()
550 name, PTR_ERR(op->fallback_tfm)); in sun4i_ss_cipher_init()
551 return PTR_ERR(op->fallback_tfm); in sun4i_ss_cipher_init()
556 crypto_skcipher_reqsize(op->fallback_tfm)); in sun4i_ss_cipher_init()
564 crypto_free_skcipher(op->fallback_tfm); in sun4i_ss_cipher_init()
572 crypto_free_skcipher(op->fallback_tfm); in sun4i_ss_cipher_exit()
600 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sun4i_ss_aes_setkey()
601 crypto_skcipher_set_flags(op->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); in sun4i_ss_aes_setkey()
603 return crypto_skcipher_setkey(op->fallback_tfm, key, keylen); in sun4i_ss_aes_setkey()
620 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sun4i_ss_des_setkey()
621 crypto_skcipher_set_flags(op->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); in sun4i_ss_des_setkey()
623 return crypto_skcipher_setkey(op->fallback_tfm, key, keylen); in sun4i_ss_des_setkey()
640 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK); in sun4i_ss_des3_setkey()
641 crypto_skcipher_set_flags(op->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); in sun4i_ss_des3_setkey()
643 return crypto_skcipher_setkey(op->fallback_tfm, key, keylen); in sun4i_ss_des3_setkey()