@hackage cprng-aes0.2.0
Crypto Pseudo Random Number Generator using AES in counter mode.
Categories
License
BSD-3-Clause
Maintainer
Vincent Hanquez <vincent@snarc.org>
Links
Versions
Deprecated
Dependencies (5)
- base >=3 && <5
- bytestring <0.11
- cereal >=0.3.0 && <0.4.0
- crypto-api >=0.5 && <0.8
- cryptocipher >=0.2.5 && <0.3.0 Show all…
Dependents (28)
@hackage/tls-extra, @hackage/push-notify, @hackage/smtps-gmail, @hackage/oidc-client, @hackage/kevin, @hackage/jose-jwt, Show all…
CPRNG-AES
This module provides a crypto pseudo random number generator using AES in counter mode.
to import:
import Crypto.Random.AESCtr
to use:
rng <- makeSystem
let (ran, rng') = getRandomBytes rng 1024
it's also an instance of CryptoRandomGen from the crypto-api package.