Cryptographic functions for EAP-FAST.
More...
#include <stdio.h>
#include <freeradius-devel/tls/base.h>
#include <freeradius-devel/eap/tls.h>
#include <freeradius-devel/tls/openssl_user_macros.h>
#include <openssl/evp.h>
#include <openssl/aes.h>
#include <openssl/err.h>
#include "eap_fast_crypto.h"
Go to the source code of this file.
|
static void | crypto_rfc4346_p_hash (uint8_t *out, size_t out_len, EVP_MD const *evp_md, uint8_t const *secret, size_t secret_len, uint8_t const *seed, size_t seed_len) |
|
static void | eap_crypto_rfc4346_prf (uint8_t *out, size_t out_len, uint8_t *scratch, uint8_t const *secret, size_t secret_len, uint8_t const *seed, size_t seed_len) |
|
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 *s, uint8_t *buffer, uint8_t *scratch, size_t size, char const *prf_label) |
|
static NEVER_RETURNS void | handleErrors (void) |
|
USES_APPLE_DEPRECATED_API 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) |
|
Cryptographic functions for EAP-FAST.
- Id
- 3f2145ae9ddcdc921489fa204c8300ebf3cc0624
- Author
- Alexander Clouter (alex@.nosp@m.digr.nosp@m.iz.or.nosp@m.g.uk)
- Copyright
- 2016 Alan DeKok (aland.nosp@m.@fre.nosp@m.eradi.nosp@m.us.o.nosp@m.rg)
-
2016 The FreeRADIUS server project
Definition in file eap_fast_crypto.c.
◆ MIN
#define MIN |
( |
|
a, |
|
|
|
b |
|
) |
| (((a)>(b)) ? (b) : (a)) |
◆ crypto_rfc4346_p_hash()
◆ eap_crypto_rfc4346_prf()
◆ eap_fast_decrypt()
◆ eap_fast_encrypt()
◆ eap_fast_tls_gen_challenge()
void eap_fast_tls_gen_challenge |
( |
SSL * |
s, |
|
|
uint8_t * |
buffer, |
|
|
uint8_t * |
scratch, |
|
|
size_t |
size, |
|
|
char const * |
prf_label |
|
) |
| |
◆ handleErrors()
◆ T_PRF()
USES_APPLE_DEPRECATED_API 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 |
|
) |
| |