Angel Martinez Gonzalez wrote:
Hello:I need initialize the PRNG to can generate keys and performing public key encryption. I want use one of this functions: void RAND_seed(const void *buf, int num); void RAND_add(const void *buf, int num, double entropy); But I don“t know what parameters I have to use. Somebody can send me a example to use this functions?.
See http://www.openssl.org/docs/crypto/RAND_add.html You usually use RAND_seed with a buffer of "good" random data. Hope it helps, Ted ;) -- PGP Public Key Information Download complete Key from http://www.convey.de/ted/tedkey_convey.asc Key fingerprint = 31B0 E029 BCF9 6605 DAC1 B2E1 0CC8 70F4 7AFB 8D26
smime.p7s
Description: S/MIME Cryptographic Signature