Lines Matching refs:tfm
26 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_cipher_need_fallback() local
32 if (areq->cryptlen < crypto_skcipher_ivsize(tfm)) in sun8i_ce_cipher_need_fallback()
55 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_cipher_fallback() local
56 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun8i_ce_cipher_fallback()
60 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun8i_ce_cipher_fallback()
82 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_cipher_prepare() local
83 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun8i_ce_cipher_prepare()
86 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun8i_ce_cipher_prepare()
101 crypto_tfm_alg_name(areq->base.tfm), in sun8i_ce_cipher_prepare()
103 rctx->op_dir, areq->iv, crypto_skcipher_ivsize(tfm), in sun8i_ce_cipher_prepare()
152 ivsize = crypto_skcipher_ivsize(tfm); in sun8i_ce_cipher_prepare()
153 if (areq->iv && crypto_skcipher_ivsize(tfm) > 0) { in sun8i_ce_cipher_prepare()
279 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(breq); in sun8i_ce_cipher_run() local
280 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun8i_ce_cipher_run()
286 err = sun8i_ce_run_task(ce, flow, crypto_tfm_alg_name(breq->base.tfm)); in sun8i_ce_cipher_run()
296 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_cipher_unprepare() local
297 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun8i_ce_cipher_unprepare()
310 ivsize = crypto_skcipher_ivsize(tfm); in sun8i_ce_cipher_unprepare()
341 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_skdecrypt() local
342 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun8i_ce_skdecrypt()
360 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_skencrypt() local
361 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun8i_ce_skencrypt()
377 int sun8i_ce_cipher_init(struct crypto_tfm *tfm) in sun8i_ce_cipher_init() argument
379 struct sun8i_cipher_tfm_ctx *op = crypto_tfm_ctx(tfm); in sun8i_ce_cipher_init()
381 const char *name = crypto_tfm_alg_name(tfm); in sun8i_ce_cipher_init()
382 struct crypto_skcipher *sktfm = __crypto_skcipher_cast(tfm); in sun8i_ce_cipher_init()
421 void sun8i_ce_cipher_exit(struct crypto_tfm *tfm) in sun8i_ce_cipher_exit() argument
423 struct sun8i_cipher_tfm_ctx *op = crypto_tfm_ctx(tfm); in sun8i_ce_cipher_exit()
430 int sun8i_ce_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in sun8i_ce_aes_setkey() argument
433 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun8i_ce_aes_setkey()
454 crypto_skcipher_set_flags(op->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); in sun8i_ce_aes_setkey()
459 int sun8i_ce_des3_setkey(struct crypto_skcipher *tfm, const u8 *key, in sun8i_ce_des3_setkey() argument
462 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun8i_ce_des3_setkey()
465 err = verify_skcipher_des3_key(tfm, key); in sun8i_ce_des3_setkey()
476 crypto_skcipher_set_flags(op->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); in sun8i_ce_des3_setkey()