Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toniomacaronio/keccak-rust
Keccak implementation in Rust
https://github.com/toniomacaronio/keccak-rust
crypto cryptography keccak rust sha3
Last synced: about 1 month ago
JSON representation
Keccak implementation in Rust
- Host: GitHub
- URL: https://github.com/toniomacaronio/keccak-rust
- Owner: TonioMacaronio
- License: mit
- Created: 2021-04-04T22:49:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-01T13:17:41.000Z (over 3 years ago)
- Last Synced: 2024-12-02T01:12:15.110Z (about 1 month ago)
- Topics: crypto, cryptography, keccak, rust, sha3
- Language: Rust
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# keccak-rust
An implementation of keccak functions.
[`The Keccak reference`](https://keccak.team/files/Keccak-reference-3.0.pdf).# Example
```toml
[dependencies]
keccak-rust = *
``````rust
extern crate keccak_rust;
use keccak_rust::*;const YOUR_INPUT_BYTES: [Byte; 12] = [72, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100, 33];
fn main() {
let mut keccak = Keccak::new(SecurityLevel::SHA256, StateBitsWidth::F1600);
keccak.append(&mut YOUR_INPUT_BYTES);
println!("{:?}", keccak.hash());
}
```