keccak-rust

Crates.iokeccak-rust
lib.rskeccak-rust
version1.0.2
sourcesrc
created_at2021-05-01 13:08:00.780277
updated_at2021-05-01 13:17:50.475785
descriptionKeccak implementation in Rust
homepagehttps://github.com/BaldyAsh/keccak-rust/
repositoryhttps://github.com/BaldyAsh/keccak-rust/
max_upload_size
id391887
size24,386
Anton Grigorev (BaldyAsh)

documentation

https://docs.rs/keccak-rust

README

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());
}
Commit count: 9

cargo fmt