Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Software WEP encryption implementation
0004  * Copyright 2002, Jouni Malinen <jkmaline@cc.hut.fi>
0005  * Copyright 2003, Instant802 Networks, Inc.
0006  */
0007 
0008 #ifndef WEP_H
0009 #define WEP_H
0010 
0011 #include <linux/skbuff.h>
0012 #include <linux/types.h>
0013 #include "ieee80211_i.h"
0014 #include "key.h"
0015 
0016 void ieee80211_wep_init(struct ieee80211_local *local);
0017 int ieee80211_wep_encrypt_data(struct arc4_ctx *ctx, u8 *rc4key,
0018                 size_t klen, u8 *data, size_t data_len);
0019 int ieee80211_wep_encrypt(struct ieee80211_local *local,
0020               struct sk_buff *skb,
0021               const u8 *key, int keylen, int keyidx);
0022 int ieee80211_wep_decrypt_data(struct arc4_ctx *ctx, u8 *rc4key,
0023                    size_t klen, u8 *data, size_t data_len);
0024 
0025 ieee80211_rx_result
0026 ieee80211_crypto_wep_decrypt(struct ieee80211_rx_data *rx);
0027 ieee80211_tx_result
0028 ieee80211_crypto_wep_encrypt(struct ieee80211_tx_data *tx);
0029 
0030 #endif /* WEP_H */