ieee802_1x_key.h 928 B

1234567891011121314151617181920212223242526
  1. /*
  2. * IEEE 802.1X-2010 Key Hierarchy
  3. * Copyright (c) 2013, Qualcomm Atheros, Inc.
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #ifndef IEEE802_1X_KEY_H
  9. #define IEEE802_1X_KEY_H
  10. int ieee802_1x_cak_128bits_aes_cmac(const u8 *msk, const u8 *mac1,
  11. const u8 *mac2, u8 *cak);
  12. int ieee802_1x_ckn_128bits_aes_cmac(const u8 *msk, const u8 *mac1,
  13. const u8 *mac2, const u8 *sid,
  14. size_t sid_bytes, u8 *ckn);
  15. int ieee802_1x_kek_128bits_aes_cmac(const u8 *cak, const u8 *ckn,
  16. size_t ckn_bytes, u8 *kek);
  17. int ieee802_1x_ick_128bits_aes_cmac(const u8 *cak, const u8 *ckn,
  18. size_t ckn_bytes, u8 *ick);
  19. int ieee802_1x_icv_128bits_aes_cmac(const u8 *ick, const u8 *msg,
  20. size_t msg_bytes, u8 *icv);
  21. int ieee802_1x_sak_128bits_aes_cmac(const u8 *cak, const u8 *ctx,
  22. size_t ctx_bytes, u8 *sak);
  23. #endif /* IEEE802_1X_KEY_H */