Lines Matching refs:tfm
2748 struct crypto_shash *tfm; in ath12k_dp_rx_peer_frag_setup() local
2753 tfm = crypto_alloc_shash("michael_mic", 0, 0); in ath12k_dp_rx_peer_frag_setup()
2754 if (IS_ERR(tfm)) in ath12k_dp_rx_peer_frag_setup()
2755 return PTR_ERR(tfm); in ath12k_dp_rx_peer_frag_setup()
2762 crypto_free_shash(tfm); in ath12k_dp_rx_peer_frag_setup()
2774 peer->tfm_mmic = tfm; in ath12k_dp_rx_peer_frag_setup()
2781 static int ath12k_dp_rx_h_michael_mic(struct crypto_shash *tfm, u8 *key, in ath12k_dp_rx_h_michael_mic() argument
2785 SHASH_DESC_ON_STACK(desc, tfm); in ath12k_dp_rx_h_michael_mic()
2790 if (!tfm) in ath12k_dp_rx_h_michael_mic()
2793 desc->tfm = tfm; in ath12k_dp_rx_h_michael_mic()
2795 ret = crypto_shash_setkey(tfm, key, 8); in ath12k_dp_rx_h_michael_mic()