mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-26 17:28:29 -05:00
887d9d01ab
This adds initial implementation of IEEE Std 802.1X-2010 PAE for MACsec. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
27 lines
928 B
C
27 lines
928 B
C
/*
|
|
* 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);
|
|
int ieee802_1x_kek_128bits_aes_cmac(const u8 *cak, const u8 *ckn,
|
|
size_t ckn_bytes, u8 *kek);
|
|
int ieee802_1x_ick_128bits_aes_cmac(const u8 *cak, const u8 *ckn,
|
|
size_t ckn_bytes, u8 *ick);
|
|
int ieee802_1x_icv_128bits_aes_cmac(const u8 *ick, const u8 *msg,
|
|
size_t msg_bytes, u8 *icv);
|
|
int ieee802_1x_sak_128bits_aes_cmac(const u8 *cak, const u8 *ctx,
|
|
size_t ctx_bytes, u8 *sak);
|
|
|
|
#endif /* IEEE802_1X_KEY_H */
|