botan-0.0.1.0: High-level Botan bindings
Safe HaskellNone
LanguageHaskell2010

Botan.Utility

Synopsis

Documentation

constantTimeCompare :: ByteString -> ByteString -> Int -> Bool Source #

Returns 0 if x[0..len] == y[0..len], -1 otherwise.

scrubMemory :: MonadIO m => Ptr a -> Int -> m () Source #

scrub :: (MonadIO m, Storable a) => Ptr a -> m () Source #

scrubArray :: (MonadIO m, Storable a) => Int -> Ptr a -> m () Source #

data HexCase Source #

Constructors

Upper 
Lower 

hexDecode :: Text -> ByteString Source #

"Hex decode some data"