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