comparison src/headers/tomcrypt_prng.h @ 209:39d5d58461d6 libtomcrypt-orig LTC_1.05

Import of libtomcrypt 1.05
author Matt Johnston <matt@ucc.asn.au>
date Wed, 06 Jul 2005 03:53:40 +0000
parents 1c15b283127b
children
comparison
equal deleted inserted replaced
191:1c15b283127b 209:39d5d58461d6
176 176
177 int find_prng(const char *name); 177 int find_prng(const char *name);
178 int register_prng(const struct ltc_prng_descriptor *prng); 178 int register_prng(const struct ltc_prng_descriptor *prng);
179 int unregister_prng(const struct ltc_prng_descriptor *prng); 179 int unregister_prng(const struct ltc_prng_descriptor *prng);
180 int prng_is_valid(int idx); 180 int prng_is_valid(int idx);
181 LTC_MUTEX_PROTO(ltc_prng_mutex);
181 182
182 /* Slow RNG you **might** be able to use to seed a PRNG with. Be careful as this 183 /* Slow RNG you **might** be able to use to seed a PRNG with. Be careful as this
183 * might not work on all platforms as planned 184 * might not work on all platforms as planned
184 */ 185 */
185 unsigned long rng_get_bytes(unsigned char *out, 186 unsigned long rng_get_bytes(unsigned char *out,
186 unsigned long outlen, 187 unsigned long outlen,
187 void (*callback)(void)); 188 void (*callback)(void));
188 189
189 int rng_make_prng(int bits, int wprng, prng_state *prng, void (*callback)(void)); 190 int rng_make_prng(int bits, int wprng, prng_state *prng, void (*callback)(void));
190 191
192
193 /* $Source: /cvs/libtom/libtomcrypt/src/headers/tomcrypt_prng.h,v $ */
194 /* $Revision: 1.3 $ */
195 /* $Date: 2005/06/19 18:00:28 $ */