Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
aewag committed May 2, 2023
1 parent c66d028 commit f619f23
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sha3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ categories = ["cryptography", "no-std"]

[dependencies]
digest = "0.10.4"
keccak = "0.1.3"
keccak = { git = "https://github.com/RustCrypto/sponges" }

[dev-dependencies]
digest = { version = "0.10.4", features = ["dev"] }
Expand Down
4 changes: 2 additions & 2 deletions sha3/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl Sha3State {
*s ^= u64::from_le_bytes(b.try_into().unwrap());
}

keccak::keccak_p(&mut self.state, self.round_count);
keccak::p1600(&mut self.state, self.round_count);
}

#[inline(always)]
Expand All @@ -46,6 +46,6 @@ impl Sha3State {

#[inline(always)]
pub(crate) fn permute(&mut self) {
keccak::keccak_p(&mut self.state, self.round_count);
keccak::p1600(&mut self.state, self.round_count);
}
}

0 comments on commit f619f23

Please sign in to comment.