Lines Matching refs:tfm
17 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_opti_poll() local
18 struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun4i_ss_opti_poll()
20 unsigned int ivsize = crypto_skcipher_ivsize(tfm); in sun4i_ss_opti_poll()
39 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun4i_ss_opti_poll()
153 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cipher_poll_fallback() local
154 struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun4i_ss_cipher_poll_fallback()
157 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun4i_ss_cipher_poll_fallback()
181 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cipher_poll() local
182 struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun4i_ss_cipher_poll()
187 unsigned int ivsize = crypto_skcipher_ivsize(tfm); in sun4i_ss_cipher_poll()
189 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun4i_ss_cipher_poll()
405 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_aes_encrypt() local
406 struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun4i_ss_cbc_aes_encrypt()
416 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_aes_decrypt() local
417 struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun4i_ss_cbc_aes_decrypt()
428 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_aes_encrypt() local
429 struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun4i_ss_ecb_aes_encrypt()
439 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_aes_decrypt() local
440 struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun4i_ss_ecb_aes_decrypt()
451 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_des_encrypt() local
452 struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun4i_ss_cbc_des_encrypt()
462 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_des_decrypt() local
463 struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun4i_ss_cbc_des_decrypt()
474 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_des_encrypt() local
475 struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun4i_ss_ecb_des_encrypt()
485 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_des_decrypt() local
486 struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun4i_ss_ecb_des_decrypt()
497 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_des3_encrypt() local
498 struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun4i_ss_cbc_des3_encrypt()
508 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_des3_decrypt() local
509 struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun4i_ss_cbc_des3_decrypt()
520 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_des3_encrypt() local
521 struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun4i_ss_ecb_des3_encrypt()
531 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_des3_decrypt() local
532 struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun4i_ss_ecb_des3_decrypt()
540 int sun4i_ss_cipher_init(struct crypto_tfm *tfm) in sun4i_ss_cipher_init() argument
542 struct sun4i_tfm_ctx *op = crypto_tfm_ctx(tfm); in sun4i_ss_cipher_init()
544 const char *name = crypto_tfm_alg_name(tfm); in sun4i_ss_cipher_init()
549 algt = container_of(tfm->__crt_alg, struct sun4i_ss_alg_template, in sun4i_ss_cipher_init()
560 crypto_skcipher_set_reqsize(__crypto_skcipher_cast(tfm), in sun4i_ss_cipher_init()
574 void sun4i_ss_cipher_exit(struct crypto_tfm *tfm) in sun4i_ss_cipher_exit() argument
576 struct sun4i_tfm_ctx *op = crypto_tfm_ctx(tfm); in sun4i_ss_cipher_exit()
583 int sun4i_ss_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in sun4i_ss_aes_setkey() argument
586 struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun4i_ss_aes_setkey()
607 crypto_skcipher_set_flags(op->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); in sun4i_ss_aes_setkey()
613 int sun4i_ss_des_setkey(struct crypto_skcipher *tfm, const u8 *key, in sun4i_ss_des_setkey() argument
616 struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun4i_ss_des_setkey()
619 err = verify_skcipher_des_key(tfm, key); in sun4i_ss_des_setkey()
627 crypto_skcipher_set_flags(op->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); in sun4i_ss_des_setkey()
633 int sun4i_ss_des3_setkey(struct crypto_skcipher *tfm, const u8 *key, in sun4i_ss_des3_setkey() argument
636 struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun4i_ss_des3_setkey()
639 err = verify_skcipher_des3_key(tfm, key); in sun4i_ss_des3_setkey()
647 crypto_skcipher_set_flags(op->fallback_tfm, tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); in sun4i_ss_des3_setkey()