raaz-0.3.2: Fast and type safe cryptography.
Copyright(c) Piyush P Kurur 2019
LicenseApache-2.0 OR BSD-3-Clause
MaintainerPiyush P Kurur <ppk@iitpkd.ac.in>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Utils

Description

 
Synopsis

Documentation

processByteSource :: ByteSource src => src -> Internals -> IO () Source #

Process the complete byte source using the internals of the primitive.

processBuffer :: KnownNat n => Buffer n -> Internals -> IO () Source #

Process the contents of the given buffer using the processBlocks action.

updateCxt :: (KnownNat n, ByteSource src) => src -> Cxt n -> IO () Source #

Update the context with the data from the source. This will process any complete blocks on the way so that

finaliseCxt :: KnownNat n => Cxt n -> IO () Source #

Finalise the computation by making use of what ever data is left in the buffer.

transform :: ByteString -> Internals -> IO ByteString Source #

Transform the given bytestring. Hint: use this very rearely.