aes_cmac.h 592 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright 2008, Jouni Malinen <j@w1.fi>
  4. */
  5. #ifndef AES_CMAC_H
  6. #define AES_CMAC_H
  7. #include <linux/crypto.h>
  8. #include <crypto/hash.h>
  9. struct crypto_shash *ieee80211_aes_cmac_key_setup(const u8 key[],
  10. size_t key_len);
  11. void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad,
  12. const u8 *data, size_t data_len, u8 *mic);
  13. void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad,
  14. const u8 *data, size_t data_len, u8 *mic);
  15. void ieee80211_aes_cmac_key_free(struct crypto_shash *tfm);
  16. #endif /* AES_CMAC_H */