solutions/zokrates_prover/.zokrates/stdlib/hashes/sha256/embed/512bit.zok

11 lines
386 B
Plaintext
Raw Normal View History

2023-12-05 06:06:28 +00:00
import "./IVconstants" as IVconstants;
import "./shaRoundNoBoolCheck" as sha256;
// A function that takes 2 bool[256] arrays as inputs
// and returns their sha256 compression function as an array of 256 bool.
// No padding is being applied
def main(bool[256] a, bool[256] b) -> bool[256] {
bool[256] IV = IVconstants();
bool[256] digest = sha256(a, b, IV);
return digest;
}