Tony Arcieri 38d10d2194
keccak: extract Keccak1600 struct with CPU feature detection (#107)
Extracts a struct to hold the state for Keccak-p1600/Keccak-f1600, along
with a CPU feature detection `InitToken` which is queried at the time
the state is initialized.

The previous `p1600`/`f1600` functions with CPU feature detection
support have been factored onto this struct, leaving the software
implementation available unconditionally as part of the public API, and
avoiding performing CPU feature detection on each invocation of the
permutation.

It looks like it should be possible to slot a struct like this into
something like `Sha3HasherCore` in place of its current `state` array.
2026-02-17 12:33:46 -07:00
2022-11-14 12:30:19 -07:00
2025-10-24 01:26:08 +03:00
2023-04-23 20:02:13 -06:00

RustCrypto: Sponge Functions

Project Chat Apache2/MIT licensed Dependency Status

Collection of sponge functions written in pure Rust.

Supported Algorithms

Crate Algorithm Crates.io Documentation
ascon Ascon crates.io Documentation
bash-f bash-f crates.io Documentation
keccak Keccak crates.io Documentation

License

All crates licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Description
Collection of sponge functions written in pure Rust
Readme
Languages
Rust 100%