Lines Matching refs:tfm
551 static int starfive_aes_init_tfm(struct crypto_skcipher *tfm) in starfive_aes_init_tfm() argument
553 struct starfive_cryp_ctx *ctx = crypto_skcipher_ctx(tfm); in starfive_aes_init_tfm()
559 crypto_skcipher_set_reqsize(tfm, sizeof(struct starfive_cryp_request_ctx) + in starfive_aes_init_tfm()
621 static int starfive_aes_aead_init_tfm(struct crypto_aead *tfm) in starfive_aes_aead_init_tfm() argument
623 struct starfive_cryp_ctx *ctx = crypto_aead_ctx(tfm); in starfive_aes_aead_init_tfm()
625 struct crypto_tfm *aead = crypto_aead_tfm(tfm); in starfive_aes_aead_init_tfm()
641 crypto_aead_set_reqsize(tfm, sizeof(struct starfive_cryp_ctx) + in starfive_aes_aead_init_tfm()
647 static void starfive_aes_aead_exit_tfm(struct crypto_aead *tfm) in starfive_aes_aead_exit_tfm() argument
649 struct starfive_cryp_ctx *ctx = crypto_aead_ctx(tfm); in starfive_aes_aead_exit_tfm()
656 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in starfive_aes_crypt() local
657 struct starfive_cryp_ctx *ctx = crypto_skcipher_ctx(tfm); in starfive_aes_crypt()
659 unsigned int blocksize_align = crypto_skcipher_blocksize(tfm) - 1; in starfive_aes_crypt()
698 static int starfive_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in starfive_aes_setkey() argument
701 struct starfive_cryp_ctx *ctx = crypto_skcipher_ctx(tfm); in starfive_aes_setkey()
717 static int starfive_aes_aead_setkey(struct crypto_aead *tfm, const u8 *key, in starfive_aes_aead_setkey() argument
720 struct starfive_cryp_ctx *ctx = crypto_aead_ctx(tfm); in starfive_aes_aead_setkey()
739 static int starfive_aes_gcm_setauthsize(struct crypto_aead *tfm, in starfive_aes_gcm_setauthsize() argument
745 static int starfive_aes_ccm_setauthsize(struct crypto_aead *tfm, in starfive_aes_ccm_setauthsize() argument
748 struct starfive_cryp_ctx *ctx = crypto_aead_ctx(tfm); in starfive_aes_ccm_setauthsize()