wep.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Software WEP encryption implementation
  3. * Copyright 2002, Jouni Malinen <jkmaline@cc.hut.fi>
  4. * Copyright 2003, Instant802 Networks, Inc.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #ifndef WEP_H
  11. #define WEP_H
  12. #include <linux/skbuff.h>
  13. #include <linux/types.h>
  14. #include "ieee80211_i.h"
  15. #include "key.h"
  16. int ieee80211_wep_init(struct ieee80211_local *local);
  17. void ieee80211_wep_free(struct ieee80211_local *local);
  18. int ieee80211_wep_encrypt_data(struct crypto_cipher *tfm, u8 *rc4key,
  19. size_t klen, u8 *data, size_t data_len);
  20. int ieee80211_wep_encrypt(struct ieee80211_local *local,
  21. struct sk_buff *skb,
  22. const u8 *key, int keylen, int keyidx);
  23. int ieee80211_wep_decrypt_data(struct crypto_cipher *tfm, u8 *rc4key,
  24. size_t klen, u8 *data, size_t data_len);
  25. ieee80211_rx_result
  26. ieee80211_crypto_wep_decrypt(struct ieee80211_rx_data *rx);
  27. ieee80211_tx_result
  28. ieee80211_crypto_wep_encrypt(struct ieee80211_tx_data *tx);
  29. #endif /* WEP_H */