Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 784 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 784 Bytes

SHA-3

This is a Rust implementation of the SHA-3 and SHAKE cryptographic hash functions as specified in FIPS 202.

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:

cargo run --example main

To run the unit tests, use the following command:

cargo test

To benchmark the functions with an empty input, use the following command:

cargo bench