.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * 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 | 4 | */ |
---|
8 | 5 | |
---|
9 | 6 | #ifndef TKIP_H |
---|
.. | .. |
---|
13 | 10 | #include <linux/crypto.h> |
---|
14 | 11 | #include "key.h" |
---|
15 | 12 | |
---|
16 | | -int ieee80211_tkip_encrypt_data(struct crypto_cipher *tfm, |
---|
| 13 | +int ieee80211_tkip_encrypt_data(struct arc4_ctx *ctx, |
---|
17 | 14 | struct ieee80211_key *key, |
---|
18 | 15 | struct sk_buff *skb, |
---|
19 | 16 | u8 *payload, size_t payload_len); |
---|
.. | .. |
---|
24 | 21 | TKIP_DECRYPT_INVALID_KEYIDX = -2, |
---|
25 | 22 | TKIP_DECRYPT_REPLAY = -3, |
---|
26 | 23 | }; |
---|
27 | | -int ieee80211_tkip_decrypt_data(struct crypto_cipher *tfm, |
---|
| 24 | +int ieee80211_tkip_decrypt_data(struct arc4_ctx *ctx, |
---|
28 | 25 | struct ieee80211_key *key, |
---|
29 | 26 | u8 *payload, size_t payload_len, u8 *ta, |
---|
30 | 27 | u8 *ra, int only_iv, int queue, |
---|