gini-crypto-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

Gini.Crypto.Import

Synopsis

Documentation

displayHex :: ByteArrayAccess ba => ba -> Utf8Builder #

Format bytes as hex and output Builder

showHex :: ByteArrayAccess ba => ba -> String #

Format bytes as hex and output String

putByteArrayAccess :: ByteArrayAccess bin => bin -> Put () #

Use ShortByteString as an intermediary

getWithCryptoFail :: String -> (a -> b) -> Int -> (ByteString -> CryptoFailable a) -> Get b #

getWithFail :: String -> (a -> b) -> Int -> (ByteString -> Either String a) -> Get b #

fromByteArray :: String -> (ba -> CryptoFailable a) -> ba -> Either String a #

Helper function to build crypto primitives from things like ByteString or Block