| Copyright | Alexander Krupenkin 2018 |
|---|---|
| License | BSD3 |
| Maintainer | mail@akru.me |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Crypto.Random.HmacDrbg
Description
NIST standardized number-theoretically secure random number generator. https://csrc.nist.gov/csrc/media/events/random-number-generation-workshop-2004/documents/hashblockcipherdrbg.pdf
XXX: This algorithm requires reseed after 2^48 iterations.
Inspired by https://github.com/TomMD/DRBG and https://github.com/indutny/hmac-drbg.
Synopsis
- data HmacDrbg a
- initialize :: (ByteArray seed, HashAlgorithm a) => seed -> HmacDrbg a
Documentation
HMAC Deterministic Random Bytes Generator.
Instances
| Eq (HmacDrbg a) Source # | |
| HashAlgorithm a => DRG (HmacDrbg a) Source # | |
Defined in Crypto.Random.HmacDrbg | |
initialize :: (ByteArray seed, HashAlgorithm a) => seed -> HmacDrbg a Source #
Initialize HMAC-DRBG by seed.