Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright 2015, Qualcomm Atheros, Inc.
0004  */
0005 
0006 #ifndef AES_GMAC_H
0007 #define AES_GMAC_H
0008 
0009 #include <linux/crypto.h>
0010 
0011 #define GMAC_AAD_LEN    20
0012 #define GMAC_MIC_LEN    16
0013 #define GMAC_NONCE_LEN  12
0014 
0015 struct crypto_aead *ieee80211_aes_gmac_key_setup(const u8 key[],
0016                          size_t key_len);
0017 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce,
0018                const u8 *data, size_t data_len, u8 *mic);
0019 void ieee80211_aes_gmac_key_free(struct crypto_aead *tfm);
0020 
0021 #endif /* AES_GMAC_H */