Module vibe.crypto.cryptorand
Implements cryptographically secure random number generators.
Functions
Name | Description |
---|---|
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
Name | Description |
---|---|
RandomNumberStream
|
Base interface for all cryptographically secure RNGs. |
Classes
Name | Description |
---|---|
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
Name | Type | Description |
---|---|---|
CRYPT_VERIFYCONTEXT
|
||
LinuxMaybeHasGetrandom
|
||
LinuxMaybeHasGetrandom
|
||
NULL
|
||
PROV_RSA_FULL
|
Aliases
Name | Type | Description |
---|---|---|
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). |