1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00
ZoKrates/zokrates_stdlib/stdlib/hashes/sha256/512bit.zok
2021-07-14 13:11:53 +02:00

8 lines
No EOL
258 B
Text

import "./sha256" as sha256
// A function that takes 2 u32[8] arrays as inputs, concatenates them,
// and returns their sha256 compression as a u32[8].
// Note: no padding is applied
def main(u32[8] a, u32[8] b) -> u32[8]:
return sha256([[...a, ...b]])