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

EAP-FAST definitions (RFC 4851) More...

Go to the source code of this file.

Data Structures

struct  pac_tlv_hdr
 
struct  eap_fast_key_block_provisioning
 
struct  eap_fast_tlv_parse
 

Macros

#define EAP_FAST_VERSION   1
 
#define EAP_FAST_KEY_LEN   64
 
#define EAP_FAST_SIMCK_LEN   40
 
#define EAP_FAST_SKS_LEN   40
 
#define EAP_FAST_CMK_LEN   20
 
#define TLS_EXT_PAC_OPAQUE   35
 
#define PAC_TYPE_PAC_KEY   1
 
#define PAC_TYPE_PAC_OPAQUE   2
 
#define PAC_TYPE_CRED_LIFETIME   3
 
#define PAC_TYPE_A_ID   4
 
#define PAC_TYPE_I_ID   5
 
#define PAC_TYPE_A_ID_INFO   7
 
#define PAC_TYPE_PAC_ACKNOWLEDGEMENT   8
 
#define PAC_TYPE_PAC_INFO   9
 
#define PAC_TYPE_PAC_TYPE   10
 
#define EAP_FAST_PAC_KEY_LEN   32
 
#define PAC_TYPE_TUNNEL_PAC   1
 
#define PAC_TYPE_USER_AUTHORIZATION   3
 
#define PAC_TYPE_MACHINE_AUTHENTICATION   2
 

Functions

void eap_fast_put_tlv_hdr (struct wpabuf *buf, u16 type, u16 len)
 
void eap_fast_put_tlv (struct wpabuf *buf, u16 type, const void *data, u16 len)
 
void eap_fast_put_tlv_buf (struct wpabuf *buf, u16 type, const struct wpabuf *data)
 
struct wpabufeap_fast_tlv_eap_payload (struct wpabuf *buf)
 
void eap_fast_derive_master_secret (const u8 *pac_key, const u8 *server_random, const u8 *client_random, u8 *master_secret)
 
u8 * eap_fast_derive_key (void *ssl_ctx, struct tls_connection *conn, const char *label, size_t len)
 
void eap_fast_derive_eap_msk (const u8 *simck, u8 *msk)
 
void eap_fast_derive_eap_emsk (const u8 *simck, u8 *emsk)
 
int eap_fast_parse_tlv (struct eap_fast_tlv_parse *tlv, int tlv_type, u8 *pos, size_t len)
 

Variables

struct pac_tlv_hdr STRUCT_PACKED
 

Detailed Description

EAP-FAST definitions (RFC 4851)