Crate tiny_keccak [] [src]

An implementation of the FIPS-202-defined SHA-3 and SHAKE functions.

The Keccak-f[1600] permutation is fully unrolled; it's nearly as fast as the Keccak team's optimized permutation.

Building

cargo build

Usage

Add this to your Cargo.toml:

[dependencies]
tiny-keccak = "1.0"

and this to your crate root:

extern crate tiny_keccak;

Original implemntation in C: https://github.com/coruus/keccak-tiny

Implementor: David Leon Gil

Port to rust: Marek Kotewicz (marek.kotewicz@gmail.com)

License: CC0, attribution kindly requested. Blame taken too, but not liability.

Structs

Keccak

This structure should be used to create keccak/sha3 hash.

Functions

keccak224
keccak256
keccak384
keccak512
keccakf

keccak-f[1600]

sha3_224
sha3_256
sha3_384
sha3_512
shake128
shake256