Definition padlen' (n: Z) : list Int.int :=
     let q := (n+8)/64*16 + 15 - (n+8)/4   (* number of zero-pad words *)
      in zeros q ++ [Int.repr (n * 8 / Int.modulus); Int.repr (n * 8)].

Lemma generate_word_lemma1: forall b n, length b = 16%nat -> firstn 16 (rev (generate_word (rev b) n)) = b.