8 #define EAP_FAST_VERSION 1
9 #define EAP_FAST_KEY_LEN 64
10 #define EAP_FAST_SIMCK_LEN 40
11 #define EAP_FAST_SKS_LEN 40
12 #define EAP_FAST_CMK_LEN 20
14 #define TLS_EXT_PAC_OPAQUE 35
21 #define PAC_TYPE_PAC_KEY 1
22 #define PAC_TYPE_PAC_OPAQUE 2
23 #define PAC_TYPE_CRED_LIFETIME 3
24 #define PAC_TYPE_A_ID 4
25 #define PAC_TYPE_I_ID 5
30 #define PAC_TYPE_A_ID_INFO 7
31 #define PAC_TYPE_PAC_ACKNOWLEDGEMENT 8
32 #define PAC_TYPE_PAC_INFO 9
33 #define PAC_TYPE_PAC_TYPE 10
49 #define EAP_FAST_PAC_KEY_LEN 32
52 #define PAC_TYPE_TUNNEL_PAC 1
55 #define PAC_TYPE_USER_AUTHORIZATION 3
58 #define PAC_TYPE_MACHINE_AUTHENTICATION 2
67 u8 session_key_seed[EAP_FAST_SKS_LEN];
68 u8 server_challenge[16];
69 u8 client_challenge[16];
78 size_t eap_payload_tlv_len;
80 size_t crypto_binding_len;
88 void eap_fast_put_tlv_hdr(
struct wpabuf *buf, u16 type, u16 len);
89 void eap_fast_put_tlv(
struct wpabuf *buf, u16 type,
const void *data,
91 void eap_fast_put_tlv_buf(
struct wpabuf *buf, u16 type,
92 const struct wpabuf *data);
93 struct wpabuf * eap_fast_tlv_eap_payload(
struct wpabuf *buf);
94 void eap_fast_derive_master_secret(
const u8 *pac_key,
const u8 *server_random,
95 const u8 *client_random, u8 *master_secret);
96 u8 * eap_fast_derive_key(
void *ssl_ctx,
struct tls_connection *conn,
97 const char *label,
size_t len);
98 void eap_fast_derive_eap_msk(
const u8 *simck, u8 *msk);
99 void eap_fast_derive_eap_emsk(
const u8 *simck, u8 *emsk);
101 int tlv_type, u8 *pos,
size_t len);
Definition: eap_fast_common.h:39
Definition: eap_tlv_common.h:65
Definition: eap_fast_common.h:76
Definition: tls_gnutls.c:38
Definition: eap_fast_common.h:65