DRBG-0.5.5: Deterministic random bit generator (aka RNG, PRNG) based HMACs, Hashes, and Ciphers.

Safe Haskell | None
Language | Haskell2010

Crypto.Random.DRBG.HMAC

# Documentation

data State d Source #

Instances

CryptoRandomGen HmacDRBG Source # |

Instance details

Defined in Crypto.Random.DRBG

Methods

newGen :: ByteString -> Either GenError HmacDRBG Source #

genSeedLength :: Tagged HmacDRBG ByteLength Source #

genBytes :: ByteLength -> HmacDRBG -> Either GenError (ByteString, HmacDRBG) Source #

reseedInfo :: HmacDRBG -> ReseedInfo Source #

reseedPeriod :: HmacDRBG -> ReseedInfo Source #

genBytesWithEntropy :: ByteLength -> ByteString -> HmacDRBG -> Either GenError (ByteString, HmacDRBG) Source #

reseed :: ByteString -> HmacDRBG -> Either GenError HmacDRBG Source #

newGenIO :: IO HmacDRBG Source #

counter :: State d -> Word64 Source #

reseedInterval :: Word64 Source #

instantiate :: Hash c d => Entropy -> Nonce -> PersonalizationString -> State d Source #

reseed :: Hash c d => State d -> Entropy -> AdditionalInput -> State d Source #

generate :: Hash c d => State d -> BitLength -> AdditionalInput -> Maybe (RandomBits, State d) Source #