[][src]Crate zeros

Keccak implementation

Project

Features

This project provides some hash functions from Keccak.

The crate uses #![no_std] by default. Documentation is built with all features, which include std. If you see some components from std crate, you have to use that feature.

References

Notes

  • Currently only little-endian systems are supported. We don't have access or knowledge to test on big-endian systems.
  • Internal state stores data on u64. So it works best on systems supporting u64 natively.
  • In addition to NIST's test data, the libray has passed millions of sample hashes generated by OpenSSL.

Usage

Modules

version_info

9.0.0 (January 8th, 2021)

Structs

Error

Error

Keccak

Keccak

Enums

Hash

Hash functions

Constants

CODE_NAME

Crate code name

HEX_STRS

A slice of hexadecimal strings of all u8 values

ID

ID of this crate

NAME

Crate name

RELEASE_DATE

Crate release date (year/month/day)

TAG

Tag, which can be used for logging...

VERSION

Crate version

Functions

bytes_to_hex

Formats a byte slice as a hexadecimal string, in lower-case

sha3_224

Hashes SHA3-224 of input bytes

sha3_256

Hashes SHA3-256 of input bytes

sha3_384

Hashes SHA3-384 of input bytes

sha3_512

Hashes SHA3-512 of input bytes

shake128

Hashes SHAKE-128 of input bytes

shake256

Hashes SHAKE-256 of input bytes

Type Definitions

IoResult

Result for I/O functions

Result

Result type used in this crate