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

EAP-FAST common helper functions (RFC 4851) More...

#include "includes.h"
#include "common.h"
#include "crypto/sha1.h"
#include "crypto/tls.h"
#include "eap_defs.h"
#include "eap_tlv_common.h"
#include "eap_fast_common.h"

Macros

#define TLS_RANDOM_LEN   32
 
#define TLS_MASTER_SECRET_LEN   48
 

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)
 

Detailed Description

EAP-FAST common helper functions (RFC 4851)