4 Created: Oct 2000 by Philip Homburg <philip@f-mnx.phicoh.com>
6 Generate 256-bit random numbers
13 PRIVATE u32_t base_bits
[8];
15 PUBLIC
void init_rand256(bits
)
18 memcpy(base_bits
, bits
, sizeof(base_bits
));
21 PUBLIC
void rand256(bits
)
31 SHA256_Update(&ctx
, (unsigned char *)base_bits
, sizeof(base_bits
));
32 SHA256_Final(bits
, &ctx
);
36 * $PchId: rand256.c,v 1.1 2005/06/28 14:13:43 philip Exp $