// SPDX-License-Identifier: GPL-2.0-only /* * AES-GMAC for IEEE 802.11 BIP-GMAC-128 and BIP-GMAC-256 * Copyright 2015, Qualcomm Atheros, Inc. */ #include <linux/kernel.h> #include <linux/types.h> #include <linux/err.h> #include <crypto/aead.h> #include <crypto/aes.h> #include <net/mac80211.h> #include "key.h" #include "aes_gmac.h" int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, const u8 *data, size_t data_len, u8 *mic) { … } struct crypto_aead *ieee80211_aes_gmac_key_setup(const u8 key[], size_t key_len) { … } void ieee80211_aes_gmac_key_free(struct crypto_aead *tfm) { … }