Hello:

Thanks for your help, but I don´t know what "buffer" and "num" I must use.

How I can generate this buffer of random data?. And, "num" is the entropy,
but, what is it?. How I obtain this entropy?.

I use Windows.

Thanks. Ragards.

----- Original Message ----- 
From: "Bernhard Froehlich" <[EMAIL PROTECTED]>
To: <openssl-users@openssl.org>
Sent: Thursday, June 23, 2005 10:17 AM
Subject: Re: How initialize the PRNG using RAND_seed ?


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



______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to