14 unsigned char buf[256];
27 unsigned long pool_idx,
37 struct sober128_prng {
53 struct yarrow_prng yarrow;
59 struct fortuna_prng fortuna;
62 struct sober128_prng sober128;
95 unsigned long (*
read)(
unsigned char *out,
unsigned long outlen,
prng_state *prng);
123 int yarrow_add_entropy(
const unsigned char *in,
unsigned long inlen,
prng_state *prng);
125 unsigned long yarrow_read(
unsigned char *out,
unsigned long outlen,
prng_state *prng);
127 int yarrow_export(
unsigned char *out,
unsigned long *outlen,
prng_state *prng);
128 int yarrow_import(
const unsigned char *in,
unsigned long inlen,
prng_state *prng);
129 int yarrow_test(
void);
135 int fortuna_add_entropy(
const unsigned char *in,
unsigned long inlen,
prng_state *prng);
137 unsigned long fortuna_read(
unsigned char *out,
unsigned long outlen,
prng_state *prng);
139 int fortuna_export(
unsigned char *out,
unsigned long *outlen,
prng_state *prng);
140 int fortuna_import(
const unsigned char *in,
unsigned long inlen,
prng_state *prng);
141 int fortuna_test(
void);
147 int rc4_add_entropy(
const unsigned char *in,
unsigned long inlen,
prng_state *prng);
149 unsigned long rc4_read(
unsigned char *out,
unsigned long outlen,
prng_state *prng);
151 int rc4_export(
unsigned char *out,
unsigned long *outlen,
prng_state *prng);
152 int rc4_import(
const unsigned char *in,
unsigned long inlen,
prng_state *prng);
159 int sprng_add_entropy(
const unsigned char *in,
unsigned long inlen,
prng_state *prng);
161 unsigned long sprng_read(
unsigned char *out,
unsigned long outlen,
prng_state *prng);
163 int sprng_export(
unsigned char *out,
unsigned long *outlen,
prng_state *prng);
164 int sprng_import(
const unsigned char *in,
unsigned long inlen,
prng_state *prng);
165 int sprng_test(
void);
171 int sober128_add_entropy(
const unsigned char *in,
unsigned long inlen,
prng_state *prng);
173 unsigned long sober128_read(
unsigned char *out,
unsigned long outlen,
prng_state *prng);
175 int sober128_export(
unsigned char *out,
unsigned long *outlen,
prng_state *prng);
176 int sober128_import(
const unsigned char *in,
unsigned long inlen,
prng_state *prng);
177 int sober128_test(
void);
191 unsigned long outlen,
192 void (*callback)(
void));
int(* pexport)(unsigned char *out, unsigned long *outlen, prng_state *prng)
Definition: tomcrypt_prng.h:107
#define hash
Definition: private_namespace.h:186
unsigned long(* read)(unsigned char *out, unsigned long outlen, prng_state *prng)
Definition: tomcrypt_prng.h:95
#define LTC_MUTEX_PROTO(x)
Definition: tomcrypt_custom.h:405
int(* test)(void)
Definition: tomcrypt_prng.h:118
#define MAXBLOCKSIZE
Definition: tomcrypt.h:23
int(* start)(prng_state *prng)
Definition: tomcrypt_prng.h:76
char dummy[1]
Definition: tomcrypt_prng.h:51
char * name
Definition: tomcrypt_prng.h:69
unsigned long ulong32
Definition: tomcrypt_macros.h:16
int(* ready)(prng_state *prng)
Definition: tomcrypt_prng.h:88
unsigned long long ulong64
Definition: tomcrypt_macros.h:7
unsigned long rng_get_bytes(unsigned char *out, unsigned long outlen, void(*callback)(void))
#define LTC_MUTEX_TYPE(x)
Definition: tomcrypt_custom.h:406
int prng_is_valid(int idx)
int rng_make_prng(int bits, int wprng, prng_state *prng, void(*callback)(void))
int(* done)(prng_state *prng)
Definition: tomcrypt_prng.h:100
int unregister_prng(const struct ltc_prng_descriptor *prng)
int register_prng(const struct ltc_prng_descriptor *prng)
union Prng_state prng_state
G3D::int16 y
Definition: Vector2int16.h:38
uint16 bits() const
Returns the underlying bits in this representation. Equivalent to:
Definition: unorm16.h:89
Definition: tomcrypt_hash.h:105
struct ltc_prng_descriptor prng_descriptor[]
int(* pimport)(const unsigned char *in, unsigned long inlen, prng_state *prng)
Definition: tomcrypt_prng.h:114
Definition: tomcrypt_cipher.h:141
Definition: tomcrypt_prng.h:67
int export_size
Definition: tomcrypt_prng.h:71
G3D::int16 x
Definition: Vector2int16.h:37
int(* add_entropy)(const unsigned char *in, unsigned long inlen, prng_state *prng)
Definition: tomcrypt_prng.h:83
Definition: tomcrypt_prng.h:50
int find_prng(const char *name)