wep.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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. bool ieee80211_wep_is_weak_iv(struct sk_buff *skb, struct ieee80211_key *key);
  26. ieee80211_rx_result
  27. ieee80211_crypto_wep_decrypt(struct ieee80211_rx_data *rx);
  28. ieee80211_tx_result
  29. ieee80211_crypto_wep_encrypt(struct ieee80211_tx_data *tx);
  30. #endif /* WEP_H */