raaz-0.3.10: 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 HaskellSafe-Inferred
LanguageHaskell2010

Raaz.Primitive.Sha2.Internal

Description

 
Synopsis

The sha2 types

type Sha512 = Sha2 (BE Word64) Source #

The Sha512 cryptographic hash.

type Sha256 = Sha2 (BE Word32) Source #

The Sha256 cryptographic hash.

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.

process256Last Source #

Arguments

:: KnownNat n 
=> Compressor256 n

block compressor

-> AlignedBlockPtr n Sha256 
-> BYTES Int 
-> Sha256Mem 
-> IO () 

Takes a block processing function for sha256 and gives a last bytes processor.