blob: 76817446fb8384d4f8d29c589293d0066a5db736 [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Jouni Malinen765cb462009-01-08 13:32:01 +02002/*
3 * Copyright 2008, Jouni Malinen <j@w1.fi>
Jouni Malinen765cb462009-01-08 13:32:01 +02004 */
5
6#ifndef AES_CMAC_H
7#define AES_CMAC_H
8
9#include <linux/crypto.h>
Ard Biesheuvel26717822017-02-06 10:49:28 +000010#include <crypto/hash.h>
Jouni Malinen765cb462009-01-08 13:32:01 +020011
Ard Biesheuvel26717822017-02-06 10:49:28 +000012struct 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,
Jouni Malinen765cb462009-01-08 13:32:01 +020015 const u8 *data, size_t data_len, u8 *mic);
Ard Biesheuvel26717822017-02-06 10:49:28 +000016void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad,
Jouni Malinen56c52da2015-01-24 19:52:08 +020017 const u8 *data, size_t data_len, u8 *mic);
Ard Biesheuvel26717822017-02-06 10:49:28 +000018void ieee80211_aes_cmac_key_free(struct crypto_shash *tfm);
Jouni Malinen765cb462009-01-08 13:32:01 +020019
20#endif /* AES_CMAC_H */