(* modified version of sha_padding_lemmas.pad *)
Definition pad_inc (msg : list byte) : list byte :=
  let n := BlockSize + Zlength msg in
  msg ++ [Byte.repr 128%Z]
      ++ list_repeat (Z.to_nat (-(n + 9) mod 64)) Byte.zero
      ++ intlist_to_bytelist ([Int.repr (n * 8 / Int.modulus); Int.repr (n * 8)]).Definition sha_splitandpad_inc (msg : Blist) : Blist :=
  bytesToBits (pad_inc (bitsToBytes msg)).

Lemma pad_injective_Case5 l1 l2 (H0 : (l1 ++ Byte.repr 128 :: nil) ++ list_repeat (Z.to_nat (- (BlockSize + Zlength l1 + 9) mod 64)) Byte.zero = (l2 ++ Byte.repr 128 :: nil) ++ list_repeat (Z.to_nat (- (BlockSize + Zlength l2 + 9) mod 64)) Byte.zero) (H : (BlockSize + Zlength l1) * 8 = ((BlockSize + Zlength l2) * 8) mod Int.modulus) (Nonneg1 : 0 <= (BlockSize + Zlength l1) * 8) (l : (BlockSize + Zlength l1) * 8 < Int.modulus): length l1 = length l2.