diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2019-06-12 18:19:54 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-06-20 14:18:33 +0800 |
commit | 5fdb373570b2119abf00d909a277ebf4ea2c078f (patch) | |
tree | e3a3bef624eb183fdd36631f23a2ba2139436796 /net/mac80211/wep.h | |
parent | dc51f25752bfcb5f1edbac1ca4ce16af7b3bd507 (diff) | |
download | linux-riscv-5fdb373570b2119abf00d909a277ebf4ea2c078f.tar.gz linux-riscv-5fdb373570b2119abf00d909a277ebf4ea2c078f.tar.bz2 linux-riscv-5fdb373570b2119abf00d909a277ebf4ea2c078f.zip |
net/mac80211: move WEP handling to ARC4 library interface
The WEP code in the mac80211 subsystem currently uses the crypto
API to access the arc4 (RC4) cipher, which is overly complicated,
and doesn't really have an upside in this particular case, since
ciphers are always synchronous and therefore always implemented in
software. Given that we have no accelerated software implementations
either, it is much more straightforward to invoke a generic library
interface directly.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'net/mac80211/wep.h')
-rw-r--r-- | net/mac80211/wep.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/mac80211/wep.h b/net/mac80211/wep.h index 9615749d1f65..3644f4a5bb87 100644 --- a/net/mac80211/wep.h +++ b/net/mac80211/wep.h @@ -17,13 +17,12 @@ #include "key.h" int ieee80211_wep_init(struct ieee80211_local *local); -void ieee80211_wep_free(struct ieee80211_local *local); -int ieee80211_wep_encrypt_data(struct crypto_cipher *tfm, u8 *rc4key, +int ieee80211_wep_encrypt_data(struct arc4_ctx *ctx, u8 *rc4key, size_t klen, u8 *data, size_t data_len); int ieee80211_wep_encrypt(struct ieee80211_local *local, struct sk_buff *skb, const u8 *key, int keylen, int keyidx); -int ieee80211_wep_decrypt_data(struct crypto_cipher *tfm, u8 *rc4key, +int ieee80211_wep_decrypt_data(struct arc4_ctx *ctx, u8 *rc4key, size_t klen, u8 *data, size_t data_len); ieee80211_rx_result |