threefish-0.2.6: The Threefish block cipher and the Skein hash function for Haskell.

Safe HaskellNone

Crypto.Threefish.Skein.Internal

Description

Skein FFI internals.

Documentation

skein256_initSource

Arguments

:: Ptr Word64

Skein 256 context to initialize.

-> Ptr Word64

Desired key or nullPtr.

-> Word64

Output size in bits.

-> IO () 

skein256_updateSource

Arguments

:: Ptr Word64

Skein 256 context.

-> Int

First/last update? First starts a new tweak. (First bit indicates first, second bit indicates last.)

-> Int

Type of block, as given by type2int.

-> Word64

Length of block. Must be multiple of 32 except for last.

-> Ptr Word64

Pointer to update data.

-> IO () 

skein256_outputSource

Arguments

:: Ptr Word64

Skein 256 context.

-> Int

First output block to get.

-> Int

Last output block to get.

-> Ptr Word64

Pointer to store output data in.

-> IO ()