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

State of keccak
State of keccak
State of keccak
State of keccak

Traits

Trait for Permutation

Functions

keccak-f[200]
keccak-f[400]
keccak-f[800]
keccak-f[1600]