We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 609c696 commit 3443722Copy full SHA for 3443722
src/sha256.nr
@@ -163,13 +163,15 @@ pub(crate) fn process_full_blocks<let N: u32>(
163
164
blocks[num_blocks] = new_msg_block;
165
}
166
+
167
// verify the 0 padding is correct for the last block
168
+ let final_block = blocks[first_partially_filled_block_index];
169
verify_msg_block_zeros(
- blocks[first_partially_filled_block_index],
170
+ final_block,
171
message_size % BLOCK_SIZE,
172
INT_BLOCK_SIZE,
173
);
- (states[first_partially_filled_block_index], blocks[first_partially_filled_block_index])
174
+ (states[first_partially_filled_block_index], final_block)
175
176
177
// Take `BLOCK_SIZE` number of bytes from `msg` starting at `msg_start` and pack them into a `MSG_BLOCK`.
0 commit comments