Crypto.Hash.BLAKE2.Internal

blake2-0.3.0.1: A library providing BLAKE2

Maintainer | John Galt <jgalt@centromere.net>
Stability | experimental
Portability | POSIX
Safe Haskell | None
Language | Haskell2010

Crypto.Hash.BLAKE2.Internal

Contents

- Types
- Functions

Description

Synopsis

- type InitFunc a = Ptr a -> CSize -> IO CInt
- type InitKeyFunc a = Ptr a -> CSize -> Ptr () -> CSize -> IO CInt
- type UpdateFunc a = Ptr a -> Ptr () -> CSize -> IO CInt
- type FinalFunc a = Ptr a -> Ptr () -> CSize -> IO CInt
- type HashFunc = Ptr () -> CSize -> Ptr () -> CSize -> Ptr () -> CSize -> IO CInt
- initializer :: Storable a => InitFunc a -> Int -> ForeignPtr a
- initializer' :: Storable a => InitKeyFunc a -> Int -> ByteString -> ForeignPtr a
- updater :: Storable a => UpdateFunc a -> ByteString -> ForeignPtr a -> ForeignPtr a
- finalizer :: Storable a => FinalFunc a -> Int -> ForeignPtr a -> ByteString
- hasher :: HashFunc -> Int -> ByteString -> ByteString -> ByteString

# Types

type InitFunc a = Ptr a -> CSize -> IO CInt #

type InitKeyFunc a = Ptr a -> CSize -> Ptr () -> CSize -> IO CInt #

type UpdateFunc a = Ptr a -> Ptr () -> CSize -> IO CInt #

type FinalFunc a = Ptr a -> Ptr () -> CSize -> IO CInt #

type HashFunc = Ptr () -> CSize -> Ptr () -> CSize -> Ptr () -> CSize -> IO CInt #

# Functions

initializer :: Storable a => InitFunc a -> Int -> ForeignPtr a #

initializer' :: Storable a => InitKeyFunc a -> Int -> ByteString -> ForeignPtr a #

updater :: Storable a => UpdateFunc a -> ByteString -> ForeignPtr a -> ForeignPtr a #

finalizer :: Storable a => FinalFunc a -> Int -> ForeignPtr a -> ByteString #

hasher :: HashFunc -> Int -> ByteString -> ByteString -> ByteString #