raaz-0.3.6: Fast and type safe cryptography.
Safe HaskellNone
LanguageHaskell2010

Blake2s.CHandWritten

Description

The portable C-implementation of Blake2s.

Synopsis

Documentation

type Prim = Blake2s Source #

type Internals = Blake2sMem Source #

type BufferPtr = AlignedBlockPtr BufferAlignment Prim Source #

c_blake2s_compress :: BufferPtr -> BlockCount Blake2s -> BYTES Word64 -> Ptr Prim -> IO () Source #

c_blake2s_last :: BlockPtr Prim -> BYTES Int -> BYTES Word64 -> Word32 -> Word32 -> Ptr Prim -> IO () Source #

processBlocks :: BufferPtr -> BlockCount Prim -> Internals -> IO () Source #

processLast :: BufferPtr -> BYTES Int -> Internals -> IO () Source #

Process the last bytes.