PQLR
Postquantum Crypto Library by QAPP
rng.h File Reference
#include <stdio.h>

Go to the source code of this file.

Data Structures

struct  AES_XOF_struct
 
struct  AES256_CTR_DRBG_struct
 

Macros

#define RNG_SUCCESS   0
 
#define RNG_BAD_MAXLEN   -1
 
#define RNG_BAD_OUTBUF   -2
 
#define RNG_BAD_REQ_LEN   -3
 

Functions

void AES256_CTR_DRBG_Update (unsigned char *provided_data, unsigned char *Key, unsigned char *V)
 
int seedexpander_init (AES_XOF_struct *ctx, unsigned char *seed, unsigned char *diversifier, unsigned long maxlen)
 
int seedexpander (AES_XOF_struct *ctx, unsigned char *x, unsigned long xlen)
 
void randombytes_init (unsigned char *entropy_input, unsigned char *personalization_string, int security_strength)
 
int randombytes (unsigned char *x, unsigned long long xlen)
 

Macro Definition Documentation

◆ RNG_BAD_MAXLEN

#define RNG_BAD_MAXLEN   -1

◆ RNG_BAD_OUTBUF

#define RNG_BAD_OUTBUF   -2

◆ RNG_BAD_REQ_LEN

#define RNG_BAD_REQ_LEN   -3

◆ RNG_SUCCESS

#define RNG_SUCCESS   0

Function Documentation

◆ AES256_CTR_DRBG_Update()

void AES256_CTR_DRBG_Update ( unsigned char *  provided_data,
unsigned char *  Key,
unsigned char *  V 
)

◆ randombytes()

int randombytes ( unsigned char *  x,
unsigned long long  xlen 
)

◆ randombytes_init()

void randombytes_init ( unsigned char *  entropy_input,
unsigned char *  personalization_string,
int  security_strength 
)

◆ seedexpander()

int seedexpander ( AES_XOF_struct ctx,
unsigned char *  x,
unsigned long  xlen 
)

◆ seedexpander_init()

int seedexpander_init ( AES_XOF_struct ctx,
unsigned char *  seed,
unsigned char *  diversifier,
unsigned long  maxlen 
)