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