vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Module vibe.crypto.cryptorand

Implements cryptographically secure random number generators.

Functions

NameDescription
arc4random_buf(buf, nbytes)
CryptAcquireContextA(phProv, pszContainer, pszProvider, dwProvType, dwFlags)
CryptGenRandom(hProv, dwLen, pbBuffer)
CryptReleaseContext(hProv, dwFlags)
secureRNG() Creates a cryptographically secure random number generator.

Interfaces

NameDescription
RandomNumberStream Base interface for all cryptographically secure RNGs.

Classes

NameDescription
CryptoException Thrown when an error occurs during random number generation.
HashMixerRNG Hash-based cryptographically secure random number mixer.
SystemRNG Operating system specific cryptography secure random number generator.

Manifest constants

NameTypeDescription
CRYPT_VERIFYCONTEXT
LinuxMaybeHasGetrandom
LinuxMaybeHasGetrandom
NULL
PROV_RSA_FULL

Aliases

NameTypeDescription
CryptAcquireContext CryptAcquireContextA
HCRYPTPROV size_t
SHA1HashMixerRNG HashMixerRNG!(std.digest.sha.SHA!(512,160).SHA,5) A SHA-1 based mixing RNG. Alias for HashMixerRNG!(SHA1, 5).
Authors

Ilya Shipunov

Copyright

© 2013 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.