Crate keccakf

Source
Expand description

An implementation of the keccak-F[1600,800,400,200].

All Keccak-F[] permutation is fully unrolled; it’s nearly as fast as the Keccak team’s optimized permutation. Use macro to generate functions Keccak-F[] with different parameters.

§Usage

Add this to your Cargo.toml:

[dependencies]
keccakf = "0.1.2"

then you can use this code:

use keccakf::{Keccak1600State, Permutation};

let mut state = Keccak1600State::default();
state.permute();

Original implemntation in Rust: tiny-keccak

Test vectors: XKCP

Structs§

Keccak200State
State of keccak
Keccak400State
State of keccak
Keccak800State
State of keccak
Keccak1600State
State of keccak

Traits§

Permutation
Trait for Permutation

Functions§

keccakf200
keccak-f[200]
keccakf400
keccak-f[400]
keccakf800
keccak-f[800]
keccakf1600
keccak-f[1600]