Electroneum
randombytes.h File Reference
#include <sys/types.h>
#include <stddef.h>
#include <stdint.h>
#include "export.h"
Include dependency graph for randombytes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  randombytes_implementation
 

Typedefs

typedef struct randombytes_implementation randombytes_implementation
 

Functions

SODIUM_EXPORT void randombytes_buf (void *const buf, const size_t size)
 
SODIUM_EXPORT uint32_t randombytes_random (void)
 
SODIUM_EXPORT uint32_t randombytes_uniform (const uint32_t upper_bound)
 
SODIUM_EXPORT void randombytes_stir (void)
 
SODIUM_EXPORT int randombytes_close (void)
 
SODIUM_EXPORT int randombytes_set_implementation (randombytes_implementation *impl)
 
SODIUM_EXPORT const char * randombytes_implementation_name (void)
 
SODIUM_EXPORT void randombytes (unsigned char *const buf, const unsigned long long buf_len)
 

Typedef Documentation

◆ randombytes_implementation

Function Documentation

◆ randombytes()

SODIUM_EXPORT void randombytes ( unsigned char *const  buf,
const unsigned long long  buf_len 
)

◆ randombytes_buf()

SODIUM_EXPORT void randombytes_buf ( void *const  buf,
const size_t  size 
)

◆ randombytes_close()

SODIUM_EXPORT int randombytes_close ( void  )

◆ randombytes_implementation_name()

SODIUM_EXPORT const char* randombytes_implementation_name ( void  )

◆ randombytes_random()

SODIUM_EXPORT uint32_t randombytes_random ( void  )

◆ randombytes_set_implementation()

SODIUM_EXPORT int randombytes_set_implementation ( randombytes_implementation impl)

◆ randombytes_stir()

SODIUM_EXPORT void randombytes_stir ( void  )

◆ randombytes_uniform()

SODIUM_EXPORT uint32_t randombytes_uniform ( const uint32_t  upper_bound)