The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Functions
eap_fast_crypto.h File Reference

Crypto function declarations. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int eap_fast_decrypt (uint8_t const *ciphertext, size_t ciphertext_len, uint8_t const *aad, size_t aad_len, uint8_t const *tag, uint8_t const *key, uint8_t const *iv, uint8_t *plaintext)
 
int eap_fast_encrypt (uint8_t const *plaintext, size_t plaintext_len, uint8_t const *aad, size_t aad_len, uint8_t const *key, uint8_t *iv, unsigned char *ciphertext, uint8_t *tag)
 
void eap_fast_tls_gen_challenge (SSL *ssl, uint8_t *buffer, uint8_t *scratch, size_t size, char const *prf_label)
 
void T_PRF (unsigned char const *secret, unsigned int secret_len, char const *prf_label, unsigned char const *seed, unsigned int seed_len, unsigned char *out, unsigned int out_len))
 

Detailed Description

Crypto function declarations.

Id
8dfc67a4f052481f91b5ef79bf0e167fc2a24ddb
Author
Alexander Clouter (alex@.nosp@m.digr.nosp@m.iz.or.nosp@m.g.uk)

Definition in file eap_fast_crypto.h.

Function Documentation

◆ eap_fast_decrypt()

int eap_fast_decrypt ( uint8_t const *  ciphertext,
size_t  ciphertext_len,
uint8_t const *  aad,
size_t  aad_len,
uint8_t const *  tag,
uint8_t const *  key,
uint8_t const *  iv,
uint8_t plaintext 
)

Definition at line 154 of file eap_fast_crypto.c.

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

◆ eap_fast_encrypt()

int eap_fast_encrypt ( uint8_t const *  plaintext,
size_t  plaintext_len,
uint8_t const *  aad,
size_t  aad_len,
uint8_t const *  key,
uint8_t iv,
unsigned char *  ciphertext,
uint8_t tag 
)

Definition at line 99 of file eap_fast_crypto.c.

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

◆ eap_fast_tls_gen_challenge()

void eap_fast_tls_gen_challenge ( SSL *  ssl,
uint8_t buffer,
uint8_t scratch,
size_t  size,
char const *  prf_label 
)

Definition at line 308 of file eap_fast_crypto.c.

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

◆ T_PRF()

void T_PRF ( unsigned char const *  secret,
unsigned int  secret_len,
char const *  prf_label,
unsigned char const *  seed,
unsigned int  seed_len,
unsigned char *  out,
unsigned int  out_len 
)

Definition at line 42 of file eap_fast_crypto.c.

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