Crates.io | keccak-rust |
lib.rs | keccak-rust |
version | 1.0.2 |
source | src |
created_at | 2021-05-01 13:08:00.780277 |
updated_at | 2021-05-01 13:17:50.475785 |
description | Keccak implementation in Rust |
homepage | https://github.com/BaldyAsh/keccak-rust/ |
repository | https://github.com/BaldyAsh/keccak-rust/ |
max_upload_size | |
id | 391887 |
size | 24,386 |
An implementation of keccak functions.
The Keccak reference
.
[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());
}