Lines Matching refs:tfm
3135 struct crypto_shash *tfm; in ath11k_peer_rx_frag_setup() local
3140 tfm = crypto_alloc_shash("michael_mic", 0, 0); in ath11k_peer_rx_frag_setup()
3141 if (IS_ERR(tfm)) { in ath11k_peer_rx_frag_setup()
3143 PTR_ERR(tfm)); in ath11k_peer_rx_frag_setup()
3144 return PTR_ERR(tfm); in ath11k_peer_rx_frag_setup()
3153 crypto_free_shash(tfm); in ath11k_peer_rx_frag_setup()
3164 peer->tfm_mmic = tfm; in ath11k_peer_rx_frag_setup()
3171 static int ath11k_dp_rx_h_michael_mic(struct crypto_shash *tfm, u8 *key, in ath11k_dp_rx_h_michael_mic() argument
3175 SHASH_DESC_ON_STACK(desc, tfm); in ath11k_dp_rx_h_michael_mic()
3180 if (!tfm) in ath11k_dp_rx_h_michael_mic()
3183 desc->tfm = tfm; in ath11k_dp_rx_h_michael_mic()
3185 ret = crypto_shash_setkey(tfm, key, 8); in ath11k_dp_rx_h_michael_mic()