raaz-0.3.5: 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

Raaz.Primitive.Blake2.Internal

Description

 
Synopsis

The blake2 types

type Blake2b = Blake2 (LE Word64) Source #

The Blake2b hash type.

type Blake2s = Blake2 (LE Word32) Source #

The Blake2s hash type.

type Blake2bMem = HashMemory128 Blake2b Source #

The memory element for blake2b hash.

type Blake2sMem = HashMemory64 Blake2s Source #

The memory element for blake2s hash.

blake2Pad Source #

Arguments

:: Primitive prim 
=> Proxy prim

the primitive (Blake2b or Blake2s).

-> BYTES Int

length of the message

-> WriteTo 

The generic blake2 padding algorithm. We pad the message with just enough zero's to make it a multiple of the block size. The exception is the empty message which should generate a single block of zeros.