OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Functions
rand.h File Reference
#include <stdlib.h>
#include <openssl/ossl_typ.h>
#include <openssl/e_os2.h>

Go to the source code of this file.

Classes

struct  rand_meth_st
 

Macros

#define RAND_F_RAND_GET_RAND_METHOD   101
 
#define RAND_F_RAND_INIT_FIPS   102
 
#define RAND_F_SSLEAY_RAND_BYTES   100
 
#define RAND_R_ERROR_INITIALISING_DRBG   102
 
#define RAND_R_ERROR_INSTANTIATING_DRBG   103
 
#define RAND_R_NO_FIPS_RANDOM_METHOD_SET   101
 
#define RAND_R_PRNG_NOT_SEEDED   100
 

Functions

int RAND_set_rand_method (const RAND_METHOD *meth)
 
const RAND_METHODRAND_get_rand_method (void)
 
int RAND_set_rand_engine (ENGINE *engine)
 
RAND_METHODRAND_SSLeay (void)
 
void RAND_cleanup (void)
 
int RAND_bytes (unsigned char *buf, int num)
 
int RAND_pseudo_bytes (unsigned char *buf, int num)
 
void RAND_seed (const void *buf, int num)
 
void RAND_add (const void *buf, int num, double entropy)
 
int RAND_load_file (const char *file, long max_bytes)
 
int RAND_write_file (const char *file)
 
const char * RAND_file_name (char *file, size_t num)
 
int RAND_status (void)
 
int RAND_query_egd_bytes (const char *path, unsigned char *buf, int bytes)
 
int RAND_egd (const char *path)
 
int RAND_egd_bytes (const char *path, int bytes)
 
int RAND_poll (void)
 
void ERR_load_RAND_strings (void)
 

Macro Definition Documentation

#define RAND_F_RAND_GET_RAND_METHOD   101

Definition at line 136 of file rand.h.

#define RAND_F_RAND_INIT_FIPS   102

Definition at line 137 of file rand.h.

#define RAND_F_SSLEAY_RAND_BYTES   100

Definition at line 138 of file rand.h.

#define RAND_R_ERROR_INITIALISING_DRBG   102

Definition at line 141 of file rand.h.

#define RAND_R_ERROR_INSTANTIATING_DRBG   103

Definition at line 142 of file rand.h.

#define RAND_R_NO_FIPS_RANDOM_METHOD_SET   101

Definition at line 143 of file rand.h.

#define RAND_R_PRNG_NOT_SEEDED   100

Definition at line 144 of file rand.h.

Function Documentation

void ERR_load_RAND_strings ( void  )

Definition at line 90 of file rand_err.c.

void RAND_add ( const void buf,
int  num,
double  entropy 
)

Definition at line 153 of file rand_lib.c.

int RAND_bytes ( unsigned char *  buf,
int  num 
)

Definition at line 160 of file rand_lib.c.

void RAND_cleanup ( void  )

Definition at line 138 of file rand_lib.c.

int RAND_egd ( const char *  path)

Definition at line 297 of file rand_egd.c.

int RAND_egd_bytes ( const char *  path,
int  bytes 
)

Definition at line 284 of file rand_egd.c.

const char* RAND_file_name ( char *  file,
size_t  num 
)

Definition at line 271 of file randfile.c.

const RAND_METHOD* RAND_get_rand_method ( void  )

Definition at line 92 of file rand_lib.c.

int RAND_load_file ( const char *  file,
long  max_bytes 
)

Definition at line 106 of file randfile.c.

int RAND_poll ( void  )

Definition at line 237 of file rand_unix.c.

int RAND_pseudo_bytes ( unsigned char *  buf,
int  num 
)

Definition at line 168 of file rand_lib.c.

int RAND_query_egd_bytes ( const char *  path,
unsigned char *  buf,
int  bytes 
)

Definition at line 136 of file rand_egd.c.

void RAND_seed ( const void buf,
int  num 
)

Definition at line 146 of file rand_lib.c.

int RAND_set_rand_engine ( ENGINE engine)

Definition at line 117 of file rand_lib.c.

int RAND_set_rand_method ( const RAND_METHOD meth)

Definition at line 79 of file rand_lib.c.

RAND_METHOD* RAND_SSLeay ( void  )

Definition at line 176 of file md_rand.c.

int RAND_status ( void  )

Definition at line 176 of file rand_lib.c.

int RAND_write_file ( const char *  file)

Definition at line 179 of file randfile.c.