^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * Copyright 2008, Jouni Malinen <j@w1.fi>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) #ifndef AES_CMAC_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) #define AES_CMAC_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #include <linux/crypto.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include <crypto/hash.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) struct crypto_shash *ieee80211_aes_cmac_key_setup(const u8 key[],
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) size_t key_len);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) const u8 *data, size_t data_len, u8 *mic);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) const u8 *data, size_t data_len, u8 *mic);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) void ieee80211_aes_cmac_key_free(struct crypto_shash *tfm);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #endif /* AES_CMAC_H */