Copyright | Aleksandr Krupenkin 2016-2021 |
---|---|
License | Apache-2.0 |
Maintainer | mail@akru.me |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
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.