2 stable releases
1.0.2 | May 1, 2021 |
---|
#1431 in Cryptography
53 downloads per month
12KB
272 lines
keccak-rust
An implementation of keccak functions.
The Keccak reference
.
Example
[dependencies]
keccak-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());
}