Require Recdef.
Require Coq.Strings.String.
Require Coq.Strings.Ascii.
(* LINEAR-TIME FUNCTIONAL VERSION OF SHA256 *)
Function zeros (n : Z) {measure Z.to_nat n} : list Int.int :=
if Z.gtb n 0 then Int.zero :: zeros (n-1) else nil.

Lemma process_msg_eq2:
forall regs hashed b,
length b = 16 ->
process_msg regs (b++hashed) =
process_msg (process_block regs (rev b)) hashed.