![]() | ![]() | |||||||||||||||||||
| ||||||||||||||||||||
| RAND_set_rand_method(3)
NAMERAND_set_rand_method, RAND_get_rand_method, RAND_SSLeay - select RAND method
SYNOPSIS#include <openssl/rand.h> void RAND_set_rand_method(const RAND_METHOD *meth); const RAND_METHOD *RAND_get_rand_method(void); RAND_METHOD *RAND_SSLeay(void);
DESCRIPTIONA RAND_METHOD specifies the functions that OpenSSL uses for random number generation. By modifying the method, alternative implementations such as hardware RNGs may be used. IMPORTANT: See the NOTES section for important information about how these RAND API functions are affected by the use of ENGINE API calls.
Initially, the default RAND_METHOD is the OpenSSL internal implementation,
as returned by
THE RAND_METHOD STRUCTURE typedef struct rand_meth_st
{
void (*seed)(const void *buf, int num);
int (*bytes)(unsigned char *buf, int num);
void (*cleanup)(void);
void (*add)(const void *buf, int num, int entropy);
int (*pseudorand)(unsigned char *buf, int num);
int (*status)(void);
} RAND_METHOD;
The components point to the implementation of
RETURN VALUES
NOTES
As of version 0.9.7, RAND_METHOD implementations are grouped together with
other algorithmic APIs (eg. RSA_METHOD, EVP_CIPHER, etc) in ENGINE modules. If a default ENGINE is specified for RAND functionality using an
ENGINE API function, that will override any RAND defaults set using the
RAND API (ie.
SEE ALSO
HISTORY
In the engine version of version 0.9.6, | |||||||||||||||||||