All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
mppe_keys.c File Reference
#include "eap_tls.h"
#include <openssl/hmac.h>
+ Include dependency graph for mppe_keys.c:

Go to the source code of this file.

Macros

#define EAPTLS_MPPE_KEY_LEN   32
 
#define FR_TLS_PRF_CHALLENGE   "ttls challenge"
 

Functions

void eap_tls_gen_eap_key (RADIUS_PACKET *packet, SSL *s, uint32_t header)
 
void eap_tls_gen_mppe_keys (REQUEST *request, SSL *s, char const *prf_label)
 Generate keys according to RFC 2716 and add to the reply. More...
 
void eap_ttls_gen_challenge (SSL *s, uint8_t *buffer, size_t size)
 
static
USES_APPLE_DEPRECATED_API void 
P_hash (EVP_MD const *evp_md, unsigned char const *secret, unsigned int secret_len, unsigned char const *seed, unsigned int seed_len, unsigned char *out, unsigned int out_len)
 
static void PRF (unsigned char const *secret, unsigned int secret_len, unsigned char const *seed, unsigned int seed_len, unsigned char *out, unsigned char *buf, unsigned int out_len)
 

Macro Definition Documentation

#define EAPTLS_MPPE_KEY_LEN   32

Definition at line 103 of file mppe_keys.c.

#define FR_TLS_PRF_CHALLENGE   "ttls challenge"

Definition at line 153 of file mppe_keys.c.

Function Documentation

void eap_tls_gen_eap_key ( RADIUS_PACKET packet,
SSL *  s,
uint32_t  header 
)

Definition at line 188 of file mppe_keys.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void eap_tls_gen_mppe_keys ( REQUEST request,
SSL *  s,
char const *  prf_label 
)

Generate keys according to RFC 2716 and add to the reply.

Definition at line 108 of file mppe_keys.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void eap_ttls_gen_challenge ( SSL *  s,
uint8_t *  buffer,
size_t  size 
)

Definition at line 161 of file mppe_keys.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static USES_APPLE_DEPRECATED_API void P_hash ( EVP_MD const *  evp_md,
unsigned char const *  secret,
unsigned int  secret_len,
unsigned char const *  seed,
unsigned int  seed_len,
unsigned char *  out,
unsigned int  out_len 
)
static

Definition at line 36 of file mppe_keys.c.

+ Here is the caller graph for this function:

static void PRF ( unsigned char const *  secret,
unsigned int  secret_len,
unsigned char const *  seed,
unsigned int  seed_len,
unsigned char *  out,
unsigned char *  buf,
unsigned int  out_len 
)
static

Definition at line 85 of file mppe_keys.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: