[][src]Crate zeros

Extensions for hashing crates

Project

Features

This project provides some extensions which can be used with hashing crates, such as tiny-keccak.

Notes

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.

Modules

version_info

7.2.0 (April 12th, 2020)

Structs

Error

Error

ReadOnlyZeros

Read-only zeros

Enums

Zeros

Zeros

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

new_128

Makes new array of 16 bytes, filled with zeros

new_224

Makes new array of 28 bytes, filled with zeros

new_256

Makes new array of 32 bytes, filled with zeros

new_384

Makes new array of 48 bytes, filled with zeros

new_512

Makes new array of 64 bytes, filled with zeros

Type Definitions

Result

Result type used in this crate

Z128

128 bits (16 bytes)

Z224

224 bits (28 bytes)

Z256

256 bits (32 bytes)

Z384

384 bits (48 bytes)

Z512

512 bits (64 bytes)