Copyright | (c) Piyush P Kurur 2019 |
---|---|
License | Apache-2.0 OR BSD-3-Clause |
Maintainer | Piyush P Kurur <ppk@iitpkd.ac.in> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- type Blake2b = Blake2 (LE Word64)
- type Blake2s = Blake2 (LE Word32)
- type Blake2bMem = HashMemory128 Blake2b
- type Blake2sMem = HashMemory64 Blake2s
- blake2Pad :: Primitive prim => Proxy prim -> BYTES Int -> WriteTo
The blake2 types
type Blake2bMem = HashMemory128 Blake2b Source #
The memory element for blake2b hash.
type Blake2sMem = HashMemory64 Blake2s Source #
The memory element for blake2s hash.
:: 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.