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

EAP-SIM/EAP-AKA Private crypto functions. More...

#include <sys/types.h>
#include <freeradius-devel/util/token.h>
+ Include dependency graph for crypto_priv.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

EVP_CIPHER_CTX * aka_sim_crypto_cipher_ctx (void)
 Allocate and reset a resumable EVP_CIPHER_CTX for each thread. More...
 
void aka_sim_crypto_cipher_ctx_free (void)
 Explicitly free all thread load cipher ctxs. More...
 

Detailed Description

EAP-SIM/EAP-AKA Private crypto functions.

Definition in file crypto_priv.h.

Function Documentation

◆ aka_sim_crypto_cipher_ctx()

EVP_CIPHER_CTX* aka_sim_crypto_cipher_ctx ( void  )

Allocate and reset a resumable EVP_CIPHER_CTX for each thread.

No two crypto operations ever occur simultaneously in the same thread, so it's fine to use a single context that persists for all operations.

Definition at line 70 of file crypto.c.

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

◆ aka_sim_crypto_cipher_ctx_free()

void aka_sim_crypto_cipher_ctx_free ( void  )

Explicitly free all thread load cipher ctxs.

Definition at line 87 of file crypto.c.

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