Skip to content

Commit

Permalink
Merge pull request #321 from cryspen/franziskus/fix-sha3-pointer
Browse files Browse the repository at this point in the history
don't use empty slices, they are 0x1 pointers now
  • Loading branch information
franziskuskiefer authored Jun 17, 2024
2 parents f86c874 + d294993 commit 7a4c585
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/digest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,9 @@ pub mod incremental_x4 {
// Pad the input to the length of 4
let data = [
input[0],
if N > 1 { input[1] } else { &[] },
if N > 2 { input[2] } else { &[] },
if N > 3 { input[3] } else { &[] },
if N > 1 { input[1] } else { &input[0] },
if N > 2 { input[2] } else { &input[0] },
if N > 3 { input[3] } else { &input[0] },
];
self.state.absorb_final(data);
}
Expand Down

0 comments on commit 7a4c585

Please sign in to comment.