gini-crypto-gen-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

Gini.Crypto.TestImport

Contents

Synopsis

Documentation

persistSpec :: forall a. (Eq a, GenValid a, Persist a, Show a, Typeable a) => Spec #

Test spec for Persist instances

bsToHex :: ByteString -> String #

Convert a ByteString to a hex-encoded String

bsFromHex :: String -> ByteString #

Convert a ByteString from a hex-encoded String

paFromBs :: ByteString -> PrimArray Word8 #

Convert a PrimArray Word8 from a ByteString

paToBs :: PrimArray Word8 -> ByteString #

Convert a PrimArray Word8 to a ByteString

Orphan instances

MonadRandom Gen #

This instance should never be used for cryptography and is useful for testing only.

Instance details

Methods

getRandomBytes :: ByteArray byteArray => Int -> Gen byteArray #