#include <string.h>#include <time.h>#include "xyssl/timing.h"#include "xyssl/havege.h"Go to the source code of this file.
Defines | |
| #define | _CRT_SECURE_NO_DEPRECATE 1 |
| #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 *rng_d) |
| HAVEGE rand function. | |
Variables | |
| static const char | _havege_src [] = "_havege_src" |
| #define ONE_ITERATION |
| #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 157 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 191 of file havege.c.
References havege_fill().
Referenced by main().
| int havege_rand | ( | void * | rng_d | ) |
HAVEGE rand function.
| rng_st | points to an HAVEGE state |
Definition at line 201 of file havege.c.
References COLLECT_SIZE, havege_fill(), havege_state::offset, and havege_state::pool.
Referenced by main().
const char _havege_src[] = "_havege_src" [static] |
1.5.4