crypto.utils

Undocumented in source.

Members

Functions

explicitZero
void explicitZero(ubyte[] array)

Sets the array to all zero. When compiling with LDC uses an intrinsic function that prevents the compiler from deeming the data write unnecessary and omitting it. When not compiling with LDC uses explicit_bzero on Linux, FreeBSD, and OpenBSD and memset_s on Mac OS X for the same purpose. The typical use of this function is to to erase secret keys after they are no longer needed.

Static variables

rnd
SecureRandomGenerator rnd;
Undocumented in source.

Structs

BigIntHelper
struct BigIntHelper
Undocumented in source.
InsecureRandomGenerator
struct InsecureRandomGenerator

Fast but cryptographically insecure source of random numbers.

SecureRandomGenerator
struct SecureRandomGenerator
Undocumented in source.

Meta