OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
rand_lib.c File Reference
#include <stdio.h>
#include <time.h>
#include "cryptlib.h"
#include <openssl/rand.h>
#include <openssl/engine.h>

Go to the source code of this file.

Functions

int RAND_set_rand_method (const RAND_METHOD *meth)
 
const RAND_METHODRAND_get_rand_method (void)
 
int RAND_set_rand_engine (ENGINE *engine)
 
void RAND_cleanup (void)
 
void RAND_seed (const void *buf, int num)
 
void RAND_add (const void *buf, int num, double entropy)
 
int RAND_bytes (unsigned char *buf, int num)
 
int RAND_pseudo_bytes (unsigned char *buf, int num)
 
int RAND_status (void)
 

Function Documentation

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.

const RAND_METHOD* RAND_get_rand_method ( void  )

Definition at line 92 of file rand_lib.c.

int RAND_pseudo_bytes ( unsigned char *  buf,
int  num 
)

Definition at line 168 of file rand_lib.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.

int RAND_status ( void  )

Definition at line 176 of file rand_lib.c.