1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00
ZoKrates/zokrates_stdlib/stdlib/hashes/sha256/embed/512bit.zok
2021-07-14 13:11:53 +02:00

10 lines
No EOL
380 B
Text

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