blob: d98011ee8f554a512acd0d9711a4ee9bcb7583f0 [file] [log] [blame]
Jiri Bencf0706e82007-05-05 11:45:53 -07001/*
2 * 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 */
8
9#ifndef WPA_H
10#define WPA_H
11
12#include <linux/skbuff.h>
13#include <linux/types.h>
14#include "ieee80211_i.h"
15
Johannes Berg9ae54c82008-01-31 19:48:20 +010016ieee80211_tx_result
Johannes Berg5cf121c2008-02-25 16:27:43 +010017ieee80211_tx_h_michael_mic_add(struct ieee80211_tx_data *tx);
Johannes Berg9ae54c82008-01-31 19:48:20 +010018ieee80211_rx_result
Johannes Berg5cf121c2008-02-25 16:27:43 +010019ieee80211_rx_h_michael_mic_verify(struct ieee80211_rx_data *rx);
Jiri Bencf0706e82007-05-05 11:45:53 -070020
Johannes Berg9ae54c82008-01-31 19:48:20 +010021ieee80211_tx_result
Johannes Berg5cf121c2008-02-25 16:27:43 +010022ieee80211_crypto_tkip_encrypt(struct ieee80211_tx_data *tx);
Johannes Berg9ae54c82008-01-31 19:48:20 +010023ieee80211_rx_result
Johannes Berg5cf121c2008-02-25 16:27:43 +010024ieee80211_crypto_tkip_decrypt(struct ieee80211_rx_data *rx);
Jiri Bencf0706e82007-05-05 11:45:53 -070025
Johannes Berg9ae54c82008-01-31 19:48:20 +010026ieee80211_tx_result
Jouni Malinen2b2ba0d2015-01-24 19:52:07 +020027ieee80211_crypto_ccmp_encrypt(struct ieee80211_tx_data *tx,
28 unsigned int mic_len);
Johannes Berg9ae54c82008-01-31 19:48:20 +010029ieee80211_rx_result
Jouni Malinen2b2ba0d2015-01-24 19:52:07 +020030ieee80211_crypto_ccmp_decrypt(struct ieee80211_rx_data *rx,
31 unsigned int mic_len);
Jiri Bencf0706e82007-05-05 11:45:53 -070032
Jouni Malinen765cb462009-01-08 13:32:01 +020033ieee80211_tx_result
34ieee80211_crypto_aes_cmac_encrypt(struct ieee80211_tx_data *tx);
Jouni Malinen56c52da2015-01-24 19:52:08 +020035ieee80211_tx_result
36ieee80211_crypto_aes_cmac_256_encrypt(struct ieee80211_tx_data *tx);
Jouni Malinen765cb462009-01-08 13:32:01 +020037ieee80211_rx_result
38ieee80211_crypto_aes_cmac_decrypt(struct ieee80211_rx_data *rx);
Jouni Malinen56c52da2015-01-24 19:52:08 +020039ieee80211_rx_result
40ieee80211_crypto_aes_cmac_256_decrypt(struct ieee80211_rx_data *rx);
Yoni Divinskyd32a1022012-01-16 15:18:59 +020041ieee80211_tx_result
Jouni Malinen8ade5382015-01-24 19:52:09 +020042ieee80211_crypto_aes_gmac_encrypt(struct ieee80211_tx_data *tx);
43ieee80211_rx_result
44ieee80211_crypto_aes_gmac_decrypt(struct ieee80211_rx_data *rx);
45ieee80211_tx_result
Yoni Divinskyd32a1022012-01-16 15:18:59 +020046ieee80211_crypto_hw_encrypt(struct ieee80211_tx_data *tx);
Max Stepanov2475b1cc2013-03-24 14:23:27 +020047ieee80211_rx_result
48ieee80211_crypto_hw_decrypt(struct ieee80211_rx_data *rx);
Jouni Malinen765cb462009-01-08 13:32:01 +020049
Jouni Malinen00b9cfa2015-01-24 19:52:06 +020050ieee80211_tx_result
51ieee80211_crypto_gcmp_encrypt(struct ieee80211_tx_data *tx);
52ieee80211_rx_result
53ieee80211_crypto_gcmp_decrypt(struct ieee80211_rx_data *rx);
54
Jiri Bencf0706e82007-05-05 11:45:53 -070055#endif /* WPA_H */