HashDRNG

Standard: NIST SP800-90A, HashDRBG

@safe
struct HashDRNG (
D
uint seedlen
) if (
isStdDigest!D &&
seedlen % 8 == 0
) {
enum isDeterministic;
enum name;
}

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

addSeed
void addSeed(in ubyte[] seed...)

Add entropy to the generators internal state.

nextBytes
void nextBytes(ubyte[] buf, in ubyte[] additionalInput...)

Generate pseudo random bytes.

setSeed
void setSeed(in ubyte[] seed...)

Initialize the generator with given seed.

Meta