aes_cmac.h 738 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright 2008, Jouni Malinen <j@w1.fi>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #ifndef AES_CMAC_H
  9. #define AES_CMAC_H
  10. #include <linux/crypto.h>
  11. #include <crypto/hash.h>
  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,
  15. const u8 *data, size_t data_len, u8 *mic);
  16. void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad,
  17. const u8 *data, size_t data_len, u8 *mic);
  18. void ieee80211_aes_cmac_key_free(struct crypto_shash *tfm);
  19. #endif /* AES_CMAC_H */