eap_aka.c File Reference

#include "includes.h"
#include "common.h"
#include "pcsc_funcs.h"
#include "crypto/crypto.h"
#include "crypto/sha1.h"
#include "crypto/sha256.h"
#include "crypto/milenage.h"
#include "eap_common/eap_sim_common.h"
#include "eap_config.h"
#include "eap_i.h"
Include dependency graph for eap_aka.c:

Go to the source code of this file.

Classes

struct  eap_aka_data

Defines

#define CLEAR_EAP_ID   0x04
#define CLEAR_PSEUDONYM   0x01
#define CLEAR_REAUTH_ID   0x02

Functions

static void eap_aka_add_checkcode (struct eap_aka_data *data, struct eap_sim_msg *msg)
static int eap_aka_add_id_msg (struct eap_aka_data *data, const struct wpabuf *msg)
static struct wpabufeap_aka_authentication_reject (struct eap_aka_data *data, u8 id)
static void eap_aka_clear_identities (struct eap_aka_data *data, int id)
static struct wpabufeap_aka_client_error (struct eap_aka_data *data, u8 id, int err)
static void eap_aka_deinit (struct eap_sm *sm, void *priv)
static void eap_aka_deinit_for_reauth (struct eap_sm *sm, void *priv)
static u8eap_aka_get_emsk (struct eap_sm *sm, void *priv, size_t *len)
static const u8eap_aka_get_identity (struct eap_sm *sm, void *priv, size_t *len)
static u8eap_aka_getKey (struct eap_sm *sm, void *priv, size_t *len)
static Boolean eap_aka_has_reauth_data (struct eap_sm *sm, void *priv)
static void * eap_aka_init (struct eap_sm *sm)
static void * eap_aka_init_for_reauth (struct eap_sm *sm, void *priv)
static Boolean eap_aka_isKeyAvailable (struct eap_sm *sm, void *priv)
static int eap_aka_learn_ids (struct eap_aka_data *data, struct eap_sim_attrs *attr)
static struct wpabufeap_aka_process (struct eap_sm *sm, void *priv, struct eap_method_ret *ret, const struct wpabuf *reqData)
static struct wpabufeap_aka_process_challenge (struct eap_sm *sm, struct eap_aka_data *data, u8 id, const struct wpabuf *reqData, struct eap_sim_attrs *attr)
static struct wpabufeap_aka_process_identity (struct eap_sm *sm, struct eap_aka_data *data, u8 id, const struct wpabuf *reqData, struct eap_sim_attrs *attr)
static struct wpabufeap_aka_process_notification (struct eap_sm *sm, struct eap_aka_data *data, u8 id, const struct wpabuf *reqData, struct eap_sim_attrs *attr)
static int eap_aka_process_notification_auth (struct eap_aka_data *data, const struct wpabuf *reqData, struct eap_sim_attrs *attr)
static int eap_aka_process_notification_reauth (struct eap_aka_data *data, struct eap_sim_attrs *attr)
static struct wpabufeap_aka_process_reauthentication (struct eap_sm *sm, struct eap_aka_data *data, u8 id, const struct wpabuf *reqData, struct eap_sim_attrs *attr)
static struct wpabufeap_aka_response_challenge (struct eap_aka_data *data, u8 id)
static struct wpabufeap_aka_response_identity (struct eap_sm *sm, struct eap_aka_data *data, u8 id, enum eap_sim_id_req id_req)
static struct wpabufeap_aka_response_notification (struct eap_aka_data *data, u8 id, u16 notification)
static struct wpabufeap_aka_response_reauth (struct eap_aka_data *data, u8 id, int counter_too_small, const u8 *nonce_s)
static void eap_aka_state (struct eap_aka_data *data, int state)
static const char * eap_aka_state_txt (int state)
static struct wpabufeap_aka_synchronization_failure (struct eap_aka_data *data, u8 id)
static int eap_aka_umts_auth (struct eap_sm *sm, struct eap_aka_data *data)
static int eap_aka_verify_checkcode (struct eap_aka_data *data, const u8 *checkcode, size_t checkcode_len)
static int eap_aka_verify_mac (struct eap_aka_data *data, const struct wpabuf *req, const u8 *mac, const u8 *extra, size_t extra_len)
int eap_peer_aka_register (void)

Define Documentation

#define CLEAR_EAP_ID   0x04

Definition at line 234 of file eap_aka.c.

#define CLEAR_PSEUDONYM   0x01

Definition at line 232 of file eap_aka.c.

#define CLEAR_REAUTH_ID   0x02

Definition at line 233 of file eap_aka.c.


Function Documentation

static void eap_aka_add_checkcode ( struct eap_aka_data data,
struct eap_sim_msg msg 
) [static]

Definition at line 320 of file eap_aka.c.

static int eap_aka_add_id_msg ( struct eap_aka_data data,
const struct wpabuf msg 
) [static]

Definition at line 301 of file eap_aka.c.

static struct wpabuf* eap_aka_authentication_reject ( struct eap_aka_data data,
u8  id 
) [static, read]

Definition at line 421 of file eap_aka.c.

static void eap_aka_clear_identities ( struct eap_aka_data data,
int  id 
) [static]

Definition at line 236 of file eap_aka.c.

static struct wpabuf* eap_aka_client_error ( struct eap_aka_data data,
u8  id,
int  err 
) [static, read]

Definition at line 405 of file eap_aka.c.

static void eap_aka_deinit ( struct eap_sm sm,
void *  priv 
) [static]

Definition at line 127 of file eap_aka.c.

static void eap_aka_deinit_for_reauth ( struct eap_sm sm,
void *  priv 
) [static]

Definition at line 1246 of file eap_aka.c.

static u8* eap_aka_get_emsk ( struct eap_sm sm,
void *  priv,
size_t *  len 
) [static]

Definition at line 1313 of file eap_aka.c.

static const u8* eap_aka_get_identity ( struct eap_sm sm,
void *  priv,
size_t *  len 
) [static]

Definition at line 1268 of file eap_aka.c.

static u8* eap_aka_getKey ( struct eap_sm sm,
void *  priv,
size_t *  len 
) [static]

Definition at line 1294 of file eap_aka.c.

static Boolean eap_aka_has_reauth_data ( struct eap_sm sm,
void *  priv 
) [static]

Definition at line 1239 of file eap_aka.c.

static void* eap_aka_init ( struct eap_sm sm  )  [static]

Definition at line 95 of file eap_aka.c.

static void* eap_aka_init_for_reauth ( struct eap_sm sm,
void *  priv 
) [static]

Definition at line 1258 of file eap_aka.c.

static Boolean eap_aka_isKeyAvailable ( struct eap_sm sm,
void *  priv 
) [static]

Definition at line 1287 of file eap_aka.c.

static int eap_aka_learn_ids ( struct eap_aka_data data,
struct eap_sim_attrs attr 
) [static]

Definition at line 260 of file eap_aka.c.

static struct wpabuf* eap_aka_process ( struct eap_sm sm,
void *  priv,
struct eap_method_ret ret,
const struct wpabuf reqData 
) [static, read]

Definition at line 1138 of file eap_aka.c.

static struct wpabuf* eap_aka_process_challenge ( struct eap_sm sm,
struct eap_aka_data data,
u8  id,
const struct wpabuf reqData,
struct eap_sim_attrs attr 
) [static, read]

Definition at line 745 of file eap_aka.c.

static struct wpabuf* eap_aka_process_identity ( struct eap_sm sm,
struct eap_aka_data data,
u8  id,
const struct wpabuf reqData,
struct eap_sim_attrs attr 
) [static, read]

Definition at line 599 of file eap_aka.c.

static struct wpabuf* eap_aka_process_notification ( struct eap_sm sm,
struct eap_aka_data data,
u8  id,
const struct wpabuf reqData,
struct eap_sim_attrs attr 
) [static, read]

Definition at line 981 of file eap_aka.c.

static int eap_aka_process_notification_auth ( struct eap_aka_data data,
const struct wpabuf reqData,
struct eap_sim_attrs attr 
) [static]

Definition at line 954 of file eap_aka.c.

static int eap_aka_process_notification_reauth ( struct eap_aka_data data,
struct eap_sim_attrs attr 
) [static]

Definition at line 920 of file eap_aka.c.

static struct wpabuf* eap_aka_process_reauthentication ( struct eap_sm sm,
struct eap_aka_data data,
u8  id,
const struct wpabuf reqData,
struct eap_sim_attrs attr 
) [static, read]

Definition at line 1016 of file eap_aka.c.

static struct wpabuf* eap_aka_response_challenge ( struct eap_aka_data data,
u8  id 
) [static, read]

Definition at line 501 of file eap_aka.c.

static struct wpabuf* eap_aka_response_identity ( struct eap_sm sm,
struct eap_aka_data data,
u8  id,
enum eap_sim_id_req  id_req 
) [static, read]

Definition at line 457 of file eap_aka.c.

static struct wpabuf* eap_aka_response_notification ( struct eap_aka_data data,
u8  id,
u16  notification 
) [static, read]

Definition at line 566 of file eap_aka.c.

static struct wpabuf* eap_aka_response_reauth ( struct eap_aka_data data,
u8  id,
int  counter_too_small,
const u8 nonce_s 
) [static, read]

Definition at line 523 of file eap_aka.c.

static void eap_aka_state ( struct eap_aka_data data,
int  state 
) [static]

Definition at line 86 of file eap_aka.c.

static const char* eap_aka_state_txt ( int  state  )  [static]

Definition at line 66 of file eap_aka.c.

static struct wpabuf* eap_aka_synchronization_failure ( struct eap_aka_data data,
u8  id 
) [static, read]

Definition at line 438 of file eap_aka.c.

static int eap_aka_umts_auth ( struct eap_sm sm,
struct eap_aka_data data 
) [static]

Definition at line 141 of file eap_aka.c.

static int eap_aka_verify_checkcode ( struct eap_aka_data data,
const u8 checkcode,
size_t  checkcode_len 
) [static]

Definition at line 355 of file eap_aka.c.

static int eap_aka_verify_mac ( struct eap_aka_data data,
const struct wpabuf req,
const u8 mac,
const u8 extra,
size_t  extra_len 
) [static]

Definition at line 649 of file eap_aka.c.

int eap_peer_aka_register ( void   ) 

Definition at line 1332 of file eap_aka.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Fri Jan 11 10:04:25 2013