Lines Matching refs:tfm

25 	struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq);  in sun8i_ss_need_fallback()  local
26 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun8i_ss_need_fallback()
91 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ss_cipher_fallback() local
92 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun8i_ss_cipher_fallback()
97 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun8i_ss_cipher_fallback()
122 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ss_setup_ivs() local
123 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun8i_ss_setup_ivs()
129 unsigned int ivsize = crypto_skcipher_ivsize(tfm); in sun8i_ss_setup_ivs()
185 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ss_cipher() local
186 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun8i_ss_cipher()
189 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun8i_ss_cipher()
204 crypto_tfm_alg_name(areq->base.tfm), in sun8i_ss_cipher()
206 rctx->op_dir, areq->iv, crypto_skcipher_ivsize(tfm), in sun8i_ss_cipher()
224 ivsize = crypto_skcipher_ivsize(tfm); in sun8i_ss_cipher()
225 if (areq->iv && crypto_skcipher_ivsize(tfm) > 0) { in sun8i_ss_cipher()
297 err = sun8i_ss_run_task(ss, rctx, crypto_tfm_alg_name(areq->base.tfm)); in sun8i_ss_cipher()
347 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ss_skdecrypt() local
348 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun8i_ss_skdecrypt()
368 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ss_skencrypt() local
369 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun8i_ss_skencrypt()
387 int sun8i_ss_cipher_init(struct crypto_tfm *tfm) in sun8i_ss_cipher_init() argument
389 struct sun8i_cipher_tfm_ctx *op = crypto_tfm_ctx(tfm); in sun8i_ss_cipher_init()
391 const char *name = crypto_tfm_alg_name(tfm); in sun8i_ss_cipher_init()
392 struct crypto_skcipher *sktfm = __crypto_skcipher_cast(tfm); in sun8i_ss_cipher_init()
428 void sun8i_ss_cipher_exit(struct crypto_tfm *tfm) in sun8i_ss_cipher_exit() argument
430 struct sun8i_cipher_tfm_ctx *op = crypto_tfm_ctx(tfm); in sun8i_ss_cipher_exit()
437 int sun8i_ss_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in sun8i_ss_aes_setkey() argument
440 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun8i_ss_aes_setkey()
461 crypto_skcipher_set_flags(op->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); in sun8i_ss_aes_setkey()
466 int sun8i_ss_des3_setkey(struct crypto_skcipher *tfm, const u8 *key, in sun8i_ss_des3_setkey() argument
469 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun8i_ss_des3_setkey()
484 crypto_skcipher_set_flags(op->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); in sun8i_ss_des3_setkey()