Go to the documentation of this file.
8 #ifndef _RANDOM_DEFINED
10 #define _RANDOM_DEFINED
22 #if defined( __WIN32__ ) || defined( __WINCE__ )
27 #elif defined( __UNIX__ ) && \
28 !( defined( __MVS__ ) || defined( __TANDEM_NSK__ ) || \
29 defined( __TANDEM_OSS__ ) )
35 #define initRandomPolling()
36 #define endRandomPolling()
37 #define waitforRandomCompletion( dummy ) CRYPT_OK
47 #if defined( __UNIX__ ) && \
48 !( defined( __MVS__ ) || defined( __TANDEM_NSK__ ) || \
49 defined( __TANDEM_OSS__ ) )
53 #define checkForked() FALSE
80 int initRandomData(
INOUT void *statePtr,
84 int addRandomData(
INOUT void *statePtr,
88 int addRandomLong(
INOUT void *statePtr,
const long value );
90 int endRandomData(
INOUT void *statePtr, \
91 IN_RANGE( 0, 100 )
const int quality );
98 #define addRandomValue( statePtr, value ) \
99 addRandomLong( statePtr, ( long ) value )
110 int initRandomInfo(
OUT_OPT_PTR void **randomInfoPtrPtr );
112 void endRandomInfo(
INOUT void **randomInfoPtrPtr );
114 int addEntropyData(
INOUT void *randomInfoPtr,
118 int addEntropyQuality(
INOUT void *randomInfoPtr,
119 IN_RANGE( 1, 100 )
const int quality );
121 int getRandomData(
INOUT void *randomInfoPtr,