wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Enumerations | Functions
ieee802_1x_kay.h File Reference

IEEE 802.1X-2010 Key Agree Protocol of PAE state machine. More...

#include "utils/list.h"
#include "common/defs.h"
#include "common/ieee802_1x_defs.h"

Go to the source code of this file.

Data Structures

struct  ieee802_1x_mka_ki
 
struct  ieee802_1x_mka_sci
 
struct  mka_key
 
struct  mka_key_name
 
struct  ieee802_1x_kay_ctx
 
struct  ieee802_1x_kay
 

Macros

#define MI_LEN   12
 
#define MAX_KEY_LEN   32 /* 32 bytes, 256 bits */
 
#define MAX_CKN_LEN   32 /* 32 bytes, 256 bits */
 
#define MKA_HELLO_TIME   2000
 
#define MKA_LIFE_TIME   6000
 
#define MKA_SAK_RETIRE_TIME   3000
 

Enumerations

enum  mka_created_mode { PSK, EAP_EXCHANGE, DISTRIBUTED, CACHED }
 

Functions

struct ieee802_1x_kayieee802_1x_kay_init (struct ieee802_1x_kay_ctx *ctx, enum macsec_policy policy, const char *ifname, const u8 *addr)
 ieee802_1x_kay_init -
 
void ieee802_1x_kay_deinit (struct ieee802_1x_kay *kay)
 ieee802_1x_kay_deinit -
 
struct ieee802_1x_mka_participantieee802_1x_kay_create_mka (struct ieee802_1x_kay *kay, struct mka_key_name *ckn, struct mka_key *cak, u32 life, enum mka_created_mode mode, Boolean is_authenticator)
 ieee802_1x_kay_create_mka -
 
void ieee802_1x_kay_delete_mka (struct ieee802_1x_kay *kay, struct mka_key_name *ckn)
 ieee802_1x_kay_delete_mka -
 
void ieee802_1x_kay_mka_participate (struct ieee802_1x_kay *kay, struct mka_key_name *ckn, Boolean status)
 ieee802_1x_kay_mka_participate -
 
int ieee802_1x_kay_new_sak (struct ieee802_1x_kay *kay)
 ieee802_1x_kay_new_sak -
 
int ieee802_1x_kay_change_cipher_suite (struct ieee802_1x_kay *kay, int cs_index)
 ieee802_1x_kay_change_cipher_suite -
 
int ieee802_1x_kay_set_latest_sa_attr (struct ieee802_1x_kay *kay, struct ieee802_1x_mka_ki *lki, u8 lan, Boolean ltx, Boolean lrx)
 ieee802_1x_kay_set_latest_sa_attr -
 
int ieee802_1x_kay_set_old_sa_attr (struct ieee802_1x_kay *kay, struct ieee802_1x_mka_ki *oki, u8 oan, Boolean otx, Boolean orx)
 ieee802_1x_kay_set_old_sa_attr -
 
int ieee802_1x_kay_create_sas (struct ieee802_1x_kay *kay, struct ieee802_1x_mka_ki *lki)
 ieee802_1x_kay_create_sas -
 
int ieee802_1x_kay_delete_sas (struct ieee802_1x_kay *kay, struct ieee802_1x_mka_ki *ki)
 ieee802_1x_kay_delete_sas -
 
int ieee802_1x_kay_enable_tx_sas (struct ieee802_1x_kay *kay, struct ieee802_1x_mka_ki *lki)
 ieee802_1x_kay_enable_tx_sas -
 
int ieee802_1x_kay_enable_rx_sas (struct ieee802_1x_kay *kay, struct ieee802_1x_mka_ki *lki)
 ieee802_1x_kay_enable_rx_sas -
 
int ieee802_1x_kay_enable_new_info (struct ieee802_1x_kay *kay)
 ieee802_1x_kay_enable_new_info -
 
int ieee802_1x_kay_cp_conf (struct ieee802_1x_kay *kay, struct ieee802_1x_cp_conf *pconf)
 ieee802_1x_kay_cp_conf -
 

Detailed Description

IEEE 802.1X-2010 Key Agree Protocol of PAE state machine.