ltc_prng_descriptor

PRNG descriptor

Members

Variables

add_entropy
int function(const ubyte* _in, c_ulong inlen, prng_state* prng) nothrow add_entropy;

Add entropy to the PRNG @param _in The entropy @param inlen Length of the entropy (octets)\ @param prng The PRNG state @return CRYPT_OK if successful

done
int function(prng_state* prng) nothrow done;

Terminate a PRNG state @param prng The PRNG state to terminate @return CRYPT_OK if successful

export_size
int export_size;

size _in bytes of exported state

name
char* name;

Name of the PRNG

pexport
int function(ubyte* _out, c_ulong* outlen, prng_state* prng) nothrow pexport;

Export a PRNG state @param _out _out The destination for the state @param outlen [_in/_out] The max size and resulting size of the PRNG state @param prng The PRNG to export @return CRYPT_OK if successful

pimport
int function(const ubyte* _in, c_ulong inlen, prng_state* prng) nothrow pimport;

Import a PRNG state @param _in The data to import @param inlen The length of the data to import (octets) @param prng The PRNG to initialize/import @return CRYPT_OK if successful

read
c_ulong function(ubyte* _out, c_ulong outlen, prng_state* prng) nothrow read;

Read from the PRNG @param _out _out Where to store the data @param outlen Length of data desired (octets) @param prng The PRNG state to read from @return Number of octets read

ready
int function(prng_state* prng) nothrow ready;

Ready a PRNG state to read from @param prng The PRNG state to ready @return CRYPT_OK if successful

start
int function(prng_state* prng) nothrow start;

Start a PRNG state @param prng _out The state to initialize @return CRYPT_OK if successful

test
int function() nothrow test;

Self-test the PRNG @return CRYPT_OK if successful, CRYPT_NOP if self-testing has been disabled

Meta