Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions hashes/zkevm/src/sha256/vanilla/constraints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ impl<F: Field> Sha256CircuitConfig<F> {
|cb| {
// Input bytes need to be zero, or 128 if this is the first padding byte
cb.require_equal(
"padding start/intermediate byte",
"padding start/intermediate byte, all padding rows except the last one",
input_bytes[idx].clone(),
is_first_padding.expr() * 128.expr(),
);
Expand All @@ -309,7 +309,7 @@ impl<F: Field> Sha256CircuitConfig<F> {
|cb| {
// Input bytes need to be zero, or 128 if this is the first padding byte
cb.require_equal(
"padding start/intermediate byte",
"padding start/intermediate byte, last padding row but not in the final block",
input_bytes[idx].clone(),
is_first_padding.expr() * 128.expr(),
);
Expand Down