Lines Matching refs:tfm
831 static int stm32_cryp_init_tfm(struct crypto_skcipher *tfm) in stm32_cryp_init_tfm() argument
833 crypto_skcipher_set_reqsize(tfm, sizeof(struct stm32_cryp_reqctx)); in stm32_cryp_init_tfm()
840 static int stm32_cryp_aes_aead_init(struct crypto_aead *tfm) in stm32_cryp_aes_aead_init() argument
842 tfm->reqsize = sizeof(struct stm32_cryp_reqctx); in stm32_cryp_aes_aead_init()
876 static int stm32_cryp_setkey(struct crypto_skcipher *tfm, const u8 *key, in stm32_cryp_setkey() argument
879 struct stm32_cryp_ctx *ctx = crypto_skcipher_ctx(tfm); in stm32_cryp_setkey()
887 static int stm32_cryp_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in stm32_cryp_aes_setkey() argument
894 return stm32_cryp_setkey(tfm, key, keylen); in stm32_cryp_aes_setkey()
897 static int stm32_cryp_des_setkey(struct crypto_skcipher *tfm, const u8 *key, in stm32_cryp_des_setkey() argument
900 return verify_skcipher_des_key(tfm, key) ?: in stm32_cryp_des_setkey()
901 stm32_cryp_setkey(tfm, key, keylen); in stm32_cryp_des_setkey()
904 static int stm32_cryp_tdes_setkey(struct crypto_skcipher *tfm, const u8 *key, in stm32_cryp_tdes_setkey() argument
907 return verify_skcipher_des3_key(tfm, key) ?: in stm32_cryp_tdes_setkey()
908 stm32_cryp_setkey(tfm, key, keylen); in stm32_cryp_tdes_setkey()
911 static int stm32_cryp_aes_aead_setkey(struct crypto_aead *tfm, const u8 *key, in stm32_cryp_aes_aead_setkey() argument
914 struct stm32_cryp_ctx *ctx = crypto_aead_ctx(tfm); in stm32_cryp_aes_aead_setkey()
926 static int stm32_cryp_aes_gcm_setauthsize(struct crypto_aead *tfm, in stm32_cryp_aes_gcm_setauthsize() argument
945 static int stm32_cryp_aes_ccm_setauthsize(struct crypto_aead *tfm, in stm32_cryp_aes_ccm_setauthsize() argument