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 Sha512 = Sha2 (BE Word64)
- type Sha256 = Sha2 (BE Word32)
- type Sha512Mem = HashMemory128 Sha512
- type Sha256Mem = HashMemory64 Sha256
- process512Last :: KnownNat n => Compressor512 n -> AlignedBlockPtr n Sha512 -> BYTES Int -> Sha512Mem -> IO ()
- process256Last :: KnownNat n => Compressor256 n -> AlignedBlockPtr n Sha256 -> BYTES Int -> Sha256Mem -> IO ()
The sha2 types
type Sha512Mem = HashMemory128 Sha512 Source #
The memory used by sha512 implementations.
type Sha256Mem = HashMemory64 Sha256 Source #
The memory used bha sha256 implementations.
process512Last :: KnownNat n => Compressor512 n -> AlignedBlockPtr n Sha512 -> BYTES Int -> Sha512Mem -> IO () Source #
Takes a block processing function for sha512 and gives a last bytes processor.