Lines Matching refs:tfm
72 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ss_cipher_fallback() local
73 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun8i_ss_cipher_fallback()
78 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun8i_ss_cipher_fallback()
98 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ss_setup_ivs() local
99 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun8i_ss_setup_ivs()
105 unsigned int ivsize = crypto_skcipher_ivsize(tfm); in sun8i_ss_setup_ivs()
161 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ss_cipher() local
162 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun8i_ss_cipher()
165 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun8i_ss_cipher()
178 crypto_tfm_alg_name(areq->base.tfm), in sun8i_ss_cipher()
180 rctx->op_dir, areq->iv, crypto_skcipher_ivsize(tfm), in sun8i_ss_cipher()
198 ivsize = crypto_skcipher_ivsize(tfm); in sun8i_ss_cipher()
199 if (areq->iv && crypto_skcipher_ivsize(tfm) > 0) { in sun8i_ss_cipher()
274 err = sun8i_ss_run_task(ss, rctx, crypto_tfm_alg_name(areq->base.tfm)); in sun8i_ss_cipher()
327 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ss_skdecrypt() local
328 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun8i_ss_skdecrypt()
348 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ss_skencrypt() local
349 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun8i_ss_skencrypt()
367 int sun8i_ss_cipher_init(struct crypto_tfm *tfm) in sun8i_ss_cipher_init() argument
369 struct sun8i_cipher_tfm_ctx *op = crypto_tfm_ctx(tfm); in sun8i_ss_cipher_init()
371 const char *name = crypto_tfm_alg_name(tfm); in sun8i_ss_cipher_init()
372 struct crypto_skcipher *sktfm = __crypto_skcipher_cast(tfm); in sun8i_ss_cipher_init()
412 void sun8i_ss_cipher_exit(struct crypto_tfm *tfm) in sun8i_ss_cipher_exit() argument
414 struct sun8i_cipher_tfm_ctx *op = crypto_tfm_ctx(tfm); in sun8i_ss_cipher_exit()
421 int sun8i_ss_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in sun8i_ss_aes_setkey() argument
424 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun8i_ss_aes_setkey()
445 crypto_skcipher_set_flags(op->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); in sun8i_ss_aes_setkey()
450 int sun8i_ss_des3_setkey(struct crypto_skcipher *tfm, const u8 *key, in sun8i_ss_des3_setkey() argument
453 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun8i_ss_des3_setkey()
468 crypto_skcipher_set_flags(op->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); in sun8i_ss_des3_setkey()