All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
eap_pwd.c File Reference
#include "eap_pwd.h"
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
+ Include dependency graph for eap_pwd.c:

Go to the source code of this file.

Functions

int compute_keys (pwd_session_t *session, uint8_t *peer_confirm, uint8_t *msk, uint8_t *emsk)
 
int compute_password_element (pwd_session_t *session, uint16_t grp_num, char const *password, int password_len, char const *id_server, int id_server_len, char const *id_peer, int id_peer_len, uint32_t *token)
 
int compute_peer_confirm (pwd_session_t *session, uint8_t *out, BN_CTX *bnctx)
 
int compute_scalar_element (pwd_session_t *session, BN_CTX *bnctx)
 
int compute_server_confirm (pwd_session_t *session, uint8_t *out, BN_CTX *bnctx)
 
static void eap_pwd_kdf (uint8_t *key, int keylen, char const *label, int labellen, uint8_t *result, int resultbitlen)
 
static void H_Final (HMAC_CTX *ctx, uint8_t *digest)
 
static
USES_APPLE_DEPRECATED_API void 
H_Init (HMAC_CTX *ctx)
 
static void H_Update (HMAC_CTX *ctx, uint8_t const *data, int len)
 
int process_peer_commit (pwd_session_t *session, uint8_t *in, size_t in_len, BN_CTX *bnctx)
 

Function Documentation

int compute_keys ( pwd_session_t session,
uint8_t *  peer_confirm,
uint8_t *  msk,
uint8_t *  emsk 
)

Definition at line 619 of file eap_pwd.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int compute_password_element ( pwd_session_t session,
uint16_t  grp_num,
char const *  password,
int  password_len,
char const *  id_server,
int  id_server_len,
char const *  id_peer,
int  id_peer_len,
uint32_t *  token 
)

Definition at line 103 of file eap_pwd.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int compute_peer_confirm ( pwd_session_t session,
uint8_t *  out,
BN_CTX *  bnctx 
)

Definition at line 520 of file eap_pwd.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int compute_scalar_element ( pwd_session_t session,
BN_CTX *  bnctx 
)

Definition at line 273 of file eap_pwd.c.

+ Here is the caller graph for this function:

int compute_server_confirm ( pwd_session_t session,
uint8_t *  out,
BN_CTX *  bnctx 
)

Definition at line 421 of file eap_pwd.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void eap_pwd_kdf ( uint8_t *  key,
int  keylen,
char const *  label,
int  labellen,
uint8_t *  result,
int  resultbitlen 
)
static

Definition at line 65 of file eap_pwd.c.

+ Here is the caller graph for this function:

static void H_Final ( HMAC_CTX *  ctx,
uint8_t *  digest 
)
static

Definition at line 56 of file eap_pwd.c.

+ Here is the caller graph for this function:

static USES_APPLE_DEPRECATED_API void H_Init ( HMAC_CTX *  ctx)
static

Definition at line 43 of file eap_pwd.c.

+ Here is the caller graph for this function:

static void H_Update ( HMAC_CTX *  ctx,
uint8_t const *  data,
int  len 
)
static

Definition at line 51 of file eap_pwd.c.

+ Here is the caller graph for this function:

int process_peer_commit ( pwd_session_t session,
uint8_t *  in,
size_t  in_len,
BN_CTX *  bnctx 
)

Definition at line 315 of file eap_pwd.c.

+ Here is the caller graph for this function: