Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- module Gini.Crypto.Types
- displayHex :: ByteArrayAccess ba => ba -> Utf8Builder
- showHex :: ByteArrayAccess ba => ba -> String
- putByteArrayAccess :: ByteArrayAccess bin => bin -> Put ()
- getWithCryptoFail :: String -> (a -> b) -> Int -> (ByteString -> CryptoFailable a) -> Get b
- getWithFail :: String -> (a -> b) -> Int -> (ByteString -> Either String a) -> Get b
- addNameToBuildError :: String -> Either String b -> Either String b
- fromByteArray :: String -> (ba -> CryptoFailable a) -> ba -> Either String a
Documentation
module Gini.Crypto.Types
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