cryptlib  3.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
Classes | Macros | Functions
random.c File Reference
#include "crypt.h"
#include "random/random_int.h"

Go to the source code of this file.

Classes

struct  RANDOM_STATE_INFO
 

Macros

#define REQUIRES_MUTEX(x)   if( !( x ) ) { krnlExitMutex( MUTEX_RANDOM ); retIntError(); }
 
#define ENSURES_MUTEX   REQUIRES_MUTEX
 
#define RANDOMPOOL_MIXES   10
 
#define RANDOM_OUTPUTSIZE   ( RANDOMPOOL_SIZE / 2 )
 

Functions

CHECK_RETVAL_BOOL STDC_NONNULL_ARG ((1))
 
CHECK_RETVAL STDC_NONNULL_ARG ((1, 2))
 

Macro Definition Documentation

#define ENSURES_MUTEX   REQUIRES_MUTEX

Definition at line 92 of file random.c.

#define RANDOM_OUTPUTSIZE   ( RANDOMPOOL_SIZE / 2 )

Definition at line 305 of file random.c.

#define RANDOMPOOL_MIXES   10

Definition at line 108 of file random.c.

#define REQUIRES_MUTEX (   x)    if( !( x ) ) { krnlExitMutex( MUTEX_RANDOM ); retIntError(); }

Definition at line 90 of file random.c.

Function Documentation

CHECK_RETVAL_BOOL STDC_NONNULL_ARG ( (1)  )

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Definition at line 118 of file random.c.

CHECK_RETVAL STDC_NONNULL_ARG ( (1, 2)  )

Definition at line 307 of file random.c.