Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright 2008, Jouni Malinen <j@w1.fi>
0004  */
0005 
0006 #ifndef AES_CMAC_H
0007 #define AES_CMAC_H
0008 
0009 #include <linux/crypto.h>
0010 #include <crypto/hash.h>
0011 
0012 struct crypto_shash *ieee80211_aes_cmac_key_setup(const u8 key[],
0013                           size_t key_len);
0014 void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad,
0015             const u8 *data, size_t data_len, u8 *mic);
0016 void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad,
0017                 const u8 *data, size_t data_len, u8 *mic);
0018 void ieee80211_aes_cmac_key_free(struct crypto_shash *tfm);
0019 
0020 #endif /* AES_CMAC_H */