blob: 9b32efb5d7a97dbb496473b3e16880f369c3a3c9 [file] [log] [blame]
#include "randapi.h"
/* Initialise a Cryptographically Strong Random Number Generator from
an octet of raw random data */
void CREATE_CSPRNG(csprng *RNG,octet *RAW)
{
RAND_seed(RNG,RAW->len,RAW->val);
}
void KILL_CSPRNG(csprng *RNG)
{
RAND_clean(RNG);
}