wpa.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * Copyright 2002-2004, Instant802 Networks, Inc.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #ifndef WPA_H
  9. #define WPA_H
  10. #include <linux/skbuff.h>
  11. #include <linux/types.h>
  12. #include "ieee80211_i.h"
  13. ieee80211_tx_result
  14. ieee80211_tx_h_michael_mic_add(struct ieee80211_tx_data *tx);
  15. ieee80211_rx_result
  16. ieee80211_rx_h_michael_mic_verify(struct ieee80211_rx_data *rx);
  17. ieee80211_tx_result
  18. ieee80211_crypto_tkip_encrypt(struct ieee80211_tx_data *tx);
  19. ieee80211_rx_result
  20. ieee80211_crypto_tkip_decrypt(struct ieee80211_rx_data *rx);
  21. ieee80211_tx_result
  22. ieee80211_crypto_ccmp_encrypt(struct ieee80211_tx_data *tx,
  23. unsigned int mic_len);
  24. ieee80211_rx_result
  25. ieee80211_crypto_ccmp_decrypt(struct ieee80211_rx_data *rx,
  26. unsigned int mic_len);
  27. ieee80211_tx_result
  28. ieee80211_crypto_aes_cmac_encrypt(struct ieee80211_tx_data *tx);
  29. ieee80211_tx_result
  30. ieee80211_crypto_aes_cmac_256_encrypt(struct ieee80211_tx_data *tx);
  31. ieee80211_rx_result
  32. ieee80211_crypto_aes_cmac_decrypt(struct ieee80211_rx_data *rx);
  33. ieee80211_rx_result
  34. ieee80211_crypto_aes_cmac_256_decrypt(struct ieee80211_rx_data *rx);
  35. ieee80211_tx_result
  36. ieee80211_crypto_aes_gmac_encrypt(struct ieee80211_tx_data *tx);
  37. ieee80211_rx_result
  38. ieee80211_crypto_aes_gmac_decrypt(struct ieee80211_rx_data *rx);
  39. ieee80211_tx_result
  40. ieee80211_crypto_hw_encrypt(struct ieee80211_tx_data *tx);
  41. ieee80211_rx_result
  42. ieee80211_crypto_hw_decrypt(struct ieee80211_rx_data *rx);
  43. ieee80211_tx_result
  44. ieee80211_crypto_gcmp_encrypt(struct ieee80211_tx_data *tx);
  45. ieee80211_rx_result
  46. ieee80211_crypto_gcmp_decrypt(struct ieee80211_rx_data *rx);
  47. #endif /* WPA_H */