wpa.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright 2002-2004, Instant802 Networks, Inc.
  4. * Copyright (C) 2022 Intel Corporation
  5. */
  6. #ifndef WPA_H
  7. #define WPA_H
  8. #include <linux/skbuff.h>
  9. #include <linux/types.h>
  10. #include "ieee80211_i.h"
  11. ieee80211_tx_result
  12. ieee80211_tx_h_michael_mic_add(struct ieee80211_tx_data *tx);
  13. ieee80211_rx_result
  14. ieee80211_rx_h_michael_mic_verify(struct ieee80211_rx_data *rx);
  15. ieee80211_tx_result
  16. ieee80211_crypto_tkip_encrypt(struct ieee80211_tx_data *tx);
  17. ieee80211_rx_result
  18. ieee80211_crypto_tkip_decrypt(struct ieee80211_rx_data *rx);
  19. ieee80211_tx_result
  20. ieee80211_crypto_ccmp_encrypt(struct ieee80211_tx_data *tx,
  21. unsigned int mic_len);
  22. ieee80211_rx_result
  23. ieee80211_crypto_ccmp_decrypt(struct ieee80211_rx_data *rx,
  24. unsigned int mic_len);
  25. ieee80211_tx_result
  26. ieee80211_crypto_aes_cmac_encrypt(struct ieee80211_tx_data *tx);
  27. ieee80211_tx_result
  28. ieee80211_crypto_aes_cmac_256_encrypt(struct ieee80211_tx_data *tx);
  29. ieee80211_rx_result
  30. ieee80211_crypto_aes_cmac_decrypt(struct ieee80211_rx_data *rx);
  31. ieee80211_rx_result
  32. ieee80211_crypto_aes_cmac_256_decrypt(struct ieee80211_rx_data *rx);
  33. ieee80211_tx_result
  34. ieee80211_crypto_aes_gmac_encrypt(struct ieee80211_tx_data *tx);
  35. ieee80211_rx_result
  36. ieee80211_crypto_aes_gmac_decrypt(struct ieee80211_rx_data *rx);
  37. ieee80211_tx_result
  38. ieee80211_crypto_gcmp_encrypt(struct ieee80211_tx_data *tx);
  39. ieee80211_rx_result
  40. ieee80211_crypto_gcmp_decrypt(struct ieee80211_rx_data *rx);
  41. #endif /* WPA_H */