mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-04 20:57:45 -04:00
Merge CMAC-128 and CMAC-256 handlers since they are almost the same. This removes duplication. The comment 'MIC = AES-128-CMAC(IGTK, AAD ...' is out-dated since CMAC is also used with BIGTK, as is the comment for CMAC-256. Simply remove the comments. Tested-on: mac80211_hwsim Signed-off-by: Chien Wong <m@xv97.com> Link: https://patch.msgid.link/20251113140511.48658-6-m@xv97.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
48 lines
1.4 KiB
C
48 lines
1.4 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright 2002-2004, Instant802 Networks, Inc.
|
|
* Copyright (C) 2022 Intel Corporation
|
|
*/
|
|
|
|
#ifndef WPA_H
|
|
#define WPA_H
|
|
|
|
#include <linux/skbuff.h>
|
|
#include <linux/types.h>
|
|
#include "ieee80211_i.h"
|
|
|
|
ieee80211_tx_result
|
|
ieee80211_tx_h_michael_mic_add(struct ieee80211_tx_data *tx);
|
|
ieee80211_rx_result
|
|
ieee80211_rx_h_michael_mic_verify(struct ieee80211_rx_data *rx);
|
|
|
|
ieee80211_tx_result
|
|
ieee80211_crypto_tkip_encrypt(struct ieee80211_tx_data *tx);
|
|
ieee80211_rx_result
|
|
ieee80211_crypto_tkip_decrypt(struct ieee80211_rx_data *rx);
|
|
|
|
ieee80211_tx_result
|
|
ieee80211_crypto_ccmp_encrypt(struct ieee80211_tx_data *tx,
|
|
unsigned int mic_len);
|
|
ieee80211_rx_result
|
|
ieee80211_crypto_ccmp_decrypt(struct ieee80211_rx_data *rx,
|
|
unsigned int mic_len);
|
|
|
|
ieee80211_tx_result
|
|
ieee80211_crypto_aes_cmac_encrypt(struct ieee80211_tx_data *tx,
|
|
unsigned int mic_len);
|
|
ieee80211_rx_result
|
|
ieee80211_crypto_aes_cmac_decrypt(struct ieee80211_rx_data *rx,
|
|
unsigned int mic_len);
|
|
ieee80211_tx_result
|
|
ieee80211_crypto_aes_gmac_encrypt(struct ieee80211_tx_data *tx);
|
|
ieee80211_rx_result
|
|
ieee80211_crypto_aes_gmac_decrypt(struct ieee80211_rx_data *rx);
|
|
|
|
ieee80211_tx_result
|
|
ieee80211_crypto_gcmp_encrypt(struct ieee80211_tx_data *tx);
|
|
ieee80211_rx_result
|
|
ieee80211_crypto_gcmp_decrypt(struct ieee80211_rx_data *rx);
|
|
|
|
#endif /* WPA_H */
|