2 stable releases

1.0.2 May 1, 2021

#1431 in Cryptography

Download history 7/week @ 2024-07-29 17/week @ 2024-08-05 13/week @ 2024-08-12 6/week @ 2024-08-26 8/week @ 2024-09-02 6/week @ 2024-09-09 9/week @ 2024-09-16 45/week @ 2024-09-23 9/week @ 2024-09-30 13/week @ 2024-10-07 21/week @ 2024-10-14 12/week @ 2024-10-21 15/week @ 2024-10-28 4/week @ 2024-11-04

53 downloads per month

MIT license

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());
}

Dependencies