symbolic-base-0.1.0.0: ZkFold Symbolic compiler and zero-knowledge proof protocols
Safe HaskellSafe-Inferred
LanguageHaskell2010

ZkFold.Symbolic.Algorithms.Hash.SHA2.Constants

Synopsis

Documentation

sha256InitialHashes :: FromConstant Natural a => Vector a Source #

SHA2 family algorithms differ in constants and parameters used in the mostly identical internal loop. This module stores initial hashes and round constants. They were taken from the official SHA2 description: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf, pages 11 to 17