Lutz Jaenicke <[EMAIL PROTECTED]>:

> when saving the random state with RAND_write_file(file) and reloading with
> RAND_load_file(file, max_bytes), the length of the random pool written to
> "file" is not available as macro, so the max_bytes must be hard coded from
> the documented value of "1k".
> Proposal:
> Add some macro like
> #define RAND_POOL_LENGTH 1024
> to rand.h.

With max_bytes == -1, the complete file is read.  If RAND_load_file
is called with e.g. max_bytes == 1024, then "cat lots_of_rubbish > file"
does not have the desired effect because only the first 1024 will
be used; it's better to use -1, or some very large value.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to