vibe.crypto.cryptorand

Implements cryptographically secure random number generators.

Members

Aliases

SHA1HashMixerRNG
alias SHA1HashMixerRNG = HashMixerRNG!(SHA1, 5)

A SHA-1 based mixing RNG. Alias for HashMixerRNG!(SHA1, 5).

Classes

CryptoException
class CryptoException

Thrown when an error occurs during random number generation.

HashMixerRNG
class HashMixerRNG(Hash, uint factor)

Hash-based cryptographically secure random number mixer.

SystemRNG
class SystemRNG

Operating system specific cryptography secure random number generator.

Functions

secureRNG
RandomNumberStream secureRNG()

Creates a cryptographically secure random number generator.

Interfaces

RandomNumberStream
interface RandomNumberStream

Base interface for all cryptographically secure RNGs.

Variables

LinuxMaybeHasGetrandom
enum bool LinuxMaybeHasGetrandom;
Undocumented in source.
LinuxMaybeHasGetrandom
enum bool LinuxMaybeHasGetrandom;
Undocumented in source.

Meta

License

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

Authors

Ilya Shipunov