Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikkel-t/sha-3
An implementation of the SHA-3 and SHAKE cryptographic hash functions in Rust.
https://github.com/mikkel-t/sha-3
hashing hashing-algorithm keccak rust sha3 shake
Last synced: about 2 months ago
JSON representation
An implementation of the SHA-3 and SHAKE cryptographic hash functions in Rust.
- Host: GitHub
- URL: https://github.com/mikkel-t/sha-3
- Owner: Mikkel-T
- License: mit
- Created: 2024-03-04T21:14:49.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-05-21T17:20:47.000Z (8 months ago)
- Last Synced: 2024-05-22T16:06:26.318Z (8 months ago)
- Topics: hashing, hashing-algorithm, keccak, rust, sha3, shake
- Language: Rust
- Homepage:
- Size: 50.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SHA-3
This is a Rust implementation of the SHA-3 and SHAKE cryptographic hash functions as specified in [FIPS 202](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf).
The code is in no way optimized for performance, but rather for clarity and simplicity with comments describing most of the steps in the algorithm with references to the specification.
## Running the code
An example of the usage of the SHA-3 and SHAKE functions can be found in the "sha3" crate under `examples/main.rs`, this can be run with the following command:
```bash
cargo run --example main
```To run the unit tests, use the following command:
```bash
cargo test
```To benchmark the functions with an empty input, use the following command:
```bash
cargo bench
```