The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Macros | Functions
crypto.c File Reference

MPPE key calculation API. More...

#include <string.h>
#include <freeradius-devel/util/sha1.h>
#include <freeradius-devel/tls/base.h>
#include <freeradius-devel/tls/log.h>
#include "tls.h"
#include "base.h"
#include "attrs.h"
#include <openssl/hmac.h>
+ Include dependency graph for crypto.c:

Go to the source code of this file.

Macros

#define __STDC_WANT_LIB_EXT1__   1
 
#define EAP_TLS_MPPE_KEY_LEN   32
 

Functions

int eap_crypto_mppe_keys (request_t *request, SSL *ssl, eap_tls_prf_label_t *prf_label)
 Generate keys according to RFC 5216 and add to the reply. More...
 
void eap_crypto_prf_label_init (eap_tls_prf_label_t *prf_label, eap_session_t *eap_session, char const *keying_prf_label, size_t keying_prf_label_len)
 Initialize the PRF label fields. More...
 
int eap_crypto_tls_session_id (TALLOC_CTX *ctx, UNUSED request_t *request, SSL *ssl, eap_tls_prf_label_t *prf_label, uint8_t **out, uint8_t eap_type)
 

Detailed Description

MPPE key calculation API.

Id
e39b4d2dd51a289f9eaaa1f2d46d65429a6dd2d4
Author
Henrik Eriksson (henri.nosp@m.ken@.nosp@m.axis..nosp@m.com)
Lars Viklund (larsv.nosp@m.@axi.nosp@m.s.com)

Definition in file crypto.c.

Macro Definition Documentation

◆ __STDC_WANT_LIB_EXT1__

#define __STDC_WANT_LIB_EXT1__   1

Definition at line 32 of file crypto.c.

◆ EAP_TLS_MPPE_KEY_LEN

#define EAP_TLS_MPPE_KEY_LEN   32

Definition at line 80 of file crypto.c.

Function Documentation

◆ eap_crypto_mppe_keys()

int eap_crypto_mppe_keys ( request_t request,
SSL *  ssl,
eap_tls_prf_label_t prf_label 
)

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

Definition at line 85 of file crypto.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ eap_crypto_prf_label_init()

void eap_crypto_prf_label_init ( eap_tls_prf_label_t prf_label,
eap_session_t eap_session,
char const *  keying_prf_label,
size_t  keying_prf_label_len 
)

Initialize the PRF label fields.

Definition at line 48 of file crypto.c.

+ Here is the caller graph for this function:

◆ eap_crypto_tls_session_id()

int eap_crypto_tls_session_id ( TALLOC_CTX *  ctx,
UNUSED request_t request,
SSL *  ssl,
eap_tls_prf_label_t prf_label,
uint8_t **  out,
uint8_t  eap_type 
)

Definition at line 132 of file crypto.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: