2014-03-25 15:39:02 -04:00
|
|
|
/*
|
|
|
|
* IEEE 802.1X-2010 Key Hierarchy
|
|
|
|
* Copyright (c) 2013, Qualcomm Atheros, Inc.
|
|
|
|
*
|
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef IEEE802_1X_KEY_H
|
|
|
|
#define IEEE802_1X_KEY_H
|
|
|
|
|
|
|
|
int ieee802_1x_cak_128bits_aes_cmac(const u8 *msk, const u8 *mac1,
|
|
|
|
const u8 *mac2, u8 *cak);
|
|
|
|
int ieee802_1x_ckn_128bits_aes_cmac(const u8 *msk, const u8 *mac1,
|
|
|
|
const u8 *mac2, const u8 *sid,
|
|
|
|
size_t sid_bytes, u8 *ckn);
|
2018-12-26 05:35:18 -05:00
|
|
|
int ieee802_1x_kek_aes_cmac(const u8 *cak, size_t cak_bytes, const u8 *ckn,
|
|
|
|
size_t ckn_bytes, u8 *kek, size_t kek_bytes);
|
2018-12-26 05:39:21 -05:00
|
|
|
int ieee802_1x_ick_aes_cmac(const u8 *cak, size_t cak_bytes, const u8 *ckn,
|
|
|
|
size_t ckn_bytes, u8 *ick, size_t ick_bytes);
|
2018-12-26 09:18:00 -05:00
|
|
|
int ieee802_1x_icv_aes_cmac(const u8 *ick, size_t ick_bytes, const u8 *msg,
|
|
|
|
size_t msg_bytes, u8 *icv);
|
2018-12-26 05:20:57 -05:00
|
|
|
int ieee802_1x_sak_aes_cmac(const u8 *cak, size_t cak_bytes, const u8 *ctx,
|
|
|
|
size_t ctx_bytes, u8 *sak, size_t sak_bytes);
|
2014-03-25 15:39:02 -04:00
|
|
|
|
|
|
|
#endif /* IEEE802_1X_KEY_H */
|