Expand description
Implementation of SHA-256 circuit using bitwise decomposition
Structsยง
- Committed
Carry Adder - An adder that just checks the carry bits instead of explicitly computing it through Ripple Carry Adder.
- Compression
Fn - Computes the single round of compression function
- Compression
FnRound ๐Carries - HConstants
- The Initial IV of SHA
- KeySchedule
- The Constant KeySchedule
- Message
Schedule - Represents the 64 rounds of message schedule. Each Round consists of 32 Wires where the first 16 rounds are identity gates, and the rest are computed as per the spec
- Message
Schedule ๐Adder Tree - Message
Schedule ๐State - Sha256
- Sha256 State for multi word computation
- Sha256
State ๐
Constantsยง
- WORD_
SIZE - SHA256 Works with word size 32
Functionsยง
- add_
get_ ๐carry_ bits_ lsb - add_
get_ ๐carry_ bits_ msb - carry_
name_ ๐counter - sha256_
padded_ ๐input
Type Aliasesยง
- Sha256
Adder - Specific adder for SHA256
- Sigma0
- See https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf for details about constants Sigma0 of SHA-256
- Sigma1
- Sigma0 of SHA-256
- Small
Sigma0 - Little Sigma0
- Small
Sigma1 - Little Sigma1