#include <string.h>
#include <time.h>
#include "xyssl/config.h"
#include "xyssl/havege.h"
#include "xyssl/timing.h"
Go to the source code of this file.
Defines | |
#define | SWAP(X, Y) { int *T = X; X = Y; Y = T; } |
#define | TST1_ENTER if( PTEST & 1 ) { PTEST ^= 3; PTEST >>= 1; |
#define | TST2_ENTER if( PTEST & 1 ) { PTEST ^= 3; PTEST >>= 1; |
#define | TST1_LEAVE U1++; } |
#define | TST2_LEAVE U2++; } |
#define | ONE_ITERATION |
Functions | |
static void | havege_fill (havege_state *hs) |
void | havege_init (havege_state *hs) |
HAVEGE initialization. | |
int | havege_rand (void *p_rng) |
HAVEGE rand function. |
#define ONE_ITERATION |
Definition at line 60 of file havege.c.
Referenced by havege_fill().
#define TST1_ENTER if( PTEST & 1 ) { PTEST ^= 3; PTEST >>= 1; |
#define TST2_ENTER if( PTEST & 1 ) { PTEST ^= 3; PTEST >>= 1; |
static void havege_fill | ( | havege_state * | hs | ) | [static] |
Definition at line 154 of file havege.c.
References COLLECT_SIZE, havege_state::offset, ONE_ITERATION, havege_state::PT1, havege_state::PT2, and havege_state::WALK.
Referenced by havege_init(), and havege_rand().
void havege_init | ( | havege_state * | hs | ) |
HAVEGE initialization.
hs | HAVEGE state to be initialized |
Definition at line 188 of file havege.c.
References havege_fill().
Referenced by generate_AES_key(), generate_RSA_keys_ciphertext(), generate_RSA_keys_plaintext(), initiate_migration_process(), main(), and ssl_test().
int havege_rand | ( | void * | p_rng | ) |
HAVEGE rand function.
rng_st | points to an HAVEGE state |
Definition at line 198 of file havege.c.
References COLLECT_SIZE, havege_fill(), havege_state::offset, and havege_state::pool.
Referenced by generate_AES_key(), generate_RSA_keys_ciphertext(), generate_RSA_keys_plaintext(), initiate_migration_process(), main(), and ssl_test().