Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Jouni Malinen | 765cb46 | 2009-01-08 13:32:01 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2008, Jouni Malinen <j@w1.fi> |
Jouni Malinen | 765cb46 | 2009-01-08 13:32:01 +0200 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef AES_CMAC_H |
| 7 | #define AES_CMAC_H |
| 8 | |
| 9 | #include <linux/crypto.h> |
Ard Biesheuvel | 2671782 | 2017-02-06 10:49:28 +0000 | [diff] [blame] | 10 | #include <crypto/hash.h> |
Jouni Malinen | 765cb46 | 2009-01-08 13:32:01 +0200 | [diff] [blame] | 11 | |
Ard Biesheuvel | 2671782 | 2017-02-06 10:49:28 +0000 | [diff] [blame] | 12 | struct crypto_shash *ieee80211_aes_cmac_key_setup(const u8 key[], |
| 13 | size_t key_len); |
| 14 | void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad, |
Jouni Malinen | 765cb46 | 2009-01-08 13:32:01 +0200 | [diff] [blame] | 15 | const u8 *data, size_t data_len, u8 *mic); |
Ard Biesheuvel | 2671782 | 2017-02-06 10:49:28 +0000 | [diff] [blame] | 16 | void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad, |
Jouni Malinen | 56c52da | 2015-01-24 19:52:08 +0200 | [diff] [blame] | 17 | const u8 *data, size_t data_len, u8 *mic); |
Ard Biesheuvel | 2671782 | 2017-02-06 10:49:28 +0000 | [diff] [blame] | 18 | void ieee80211_aes_cmac_key_free(struct crypto_shash *tfm); |
Jouni Malinen | 765cb46 | 2009-01-08 13:32:01 +0200 | [diff] [blame] | 19 | |
| 20 | #endif /* AES_CMAC_H */ |