Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- module Gini.Crypto
- persistSpec :: forall a. (Eq a, GenValid a, Persist a, Show a, Typeable a) => Spec
- bsToHex :: ByteString -> String
- bsFromHex :: String -> ByteString
- paFromBs :: ByteString -> PrimArray Word8
- paToBs :: PrimArray Word8 -> ByteString
Documentation
module Gini.Crypto
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. |
getRandomBytes :: ByteArray byteArray => Int -> Gen byteArray # |