Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
tea.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TEA_STATE_SIZE   (MAX(DT_CACHELINE_BYTES, 2*sizeof(unsigned int)))
 
#define TEA_ROUNDS   8
 

Functions

static unsigned int * alloc_tea_states (size_t numthreads)
 
static unsigned int * get_tea_state (unsigned int *const states, int threadnum)
 
static void free_tea_states (unsigned int *states)
 
static void encrypt_tea (unsigned int *arg)
 
static float tpdf (unsigned int urandom)
 

Macro Definition Documentation

◆ TEA_ROUNDS

#define TEA_ROUNDS   8

◆ TEA_STATE_SIZE

#define TEA_STATE_SIZE   (MAX(DT_CACHELINE_BYTES, 2*sizeof(unsigned int)))

Function Documentation

◆ alloc_tea_states()

static unsigned int * alloc_tea_states ( size_t  numthreads)
inlinestatic

References dt_alloc_align, and TEA_STATE_SIZE.

Referenced by process(), and process_random().

◆ encrypt_tea()

static void encrypt_tea ( unsigned int *  arg)
inlinestatic

References key, and TEA_ROUNDS.

Referenced by process(), and process_random().

◆ free_tea_states()

static void free_tea_states ( unsigned int *  states)
inlinestatic

References dt_free_align.

Referenced by process(), and process_random().

◆ get_tea_state()

static unsigned int * get_tea_state ( unsigned int *const  states,
int  threadnum 
)
inlinestatic

References TEA_STATE_SIZE.

Referenced by process(), and process_random().

◆ tpdf()

static float tpdf ( unsigned int  urandom)
inlinestatic

Referenced by process(), and process_random().