Lines Matching +full:aes +full:- +full:cmac
1 // SPDX-License-Identifier: GPL-2.0-only
3 * AES-128-CMAC with TLen 16 for IEEE 802.11w BIP
13 #include <crypto/aes.h>
19 #define CMAC_TLEN 8 /* CMAC TLen = 64 bits (8 octets) */
20 #define CMAC_TLEN_256 16 /* CMAC TLen = 128 bits (16 octets) */
32 desc->tfm = tfm; in ieee80211_aes_cmac()
40 crypto_shash_update(desc, data + 8, data_len - 8 - CMAC_TLEN); in ieee80211_aes_cmac()
42 crypto_shash_update(desc, data, data_len - CMAC_TLEN); in ieee80211_aes_cmac()
55 desc->tfm = tfm; in ieee80211_aes_cmac_256()
64 data_len - 8 - CMAC_TLEN_256); in ieee80211_aes_cmac_256()
66 crypto_shash_update(desc, data, data_len - CMAC_TLEN_256); in ieee80211_aes_cmac_256()
76 tfm = crypto_alloc_shash("cmac(aes)", 0, 0); in ieee80211_aes_cmac_key_setup()