Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- constantTimeCompare :: ByteString -> ByteString -> Int -> Bool
- scrubMemory :: MonadIO m => Ptr a -> Int -> m ()
- scrub :: (MonadIO m, Storable a) => Ptr a -> m ()
- scrubArray :: (MonadIO m, Storable a) => Int -> Ptr a -> m ()
- scrubForeignPtr :: (MonadIO m, Storable a) => ForeignPtr a -> m ()
- scrubForeignPtrArray :: (MonadIO m, Storable a) => Int -> ForeignPtr a -> m ()
- scrubByteString :: MonadIO m => ByteString -> m ()
- data HexCase
- hexEncode :: ByteString -> HexCase -> Text
- hexDecode :: Text -> ByteString
- base64Encode :: ByteString -> Text
- base64Decode :: Text -> ByteString
Documentation
constantTimeCompare :: ByteString -> ByteString -> Int -> Bool Source #
Returns 0 if x[0..len] == y[0..len], -1 otherwise.
scrubForeignPtr :: (MonadIO m, Storable a) => ForeignPtr a -> m () Source #
scrubForeignPtrArray :: (MonadIO m, Storable a) => Int -> ForeignPtr a -> m () Source #
scrubByteString :: MonadIO m => ByteString -> m () Source #
hexDecode :: Text -> ByteString Source #
"Hex decode some data"
base64Encode :: ByteString -> Text Source #
base64Decode :: Text -> ByteString Source #