[−][src]Crate zeros
Keccak implementation
Project
- Repository: https://bitbucket.org/haibison/zeros
- License: Nice License 1.0.0 (see LICENSE file at root directory of
master
branch) - This project follows Semantic Versioning 2.0.0
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
- Specifications: https://keccak.team/keccak_specs_summary.html
- Test data: https://csrc.nist.gov/projects/cryptographic-standards-and-guidelines/example-values
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 supportingu64
natively. - In addition to NIST's test data, the libray has passed millions of sample hashes generated by OpenSSL.
Usage
- For small data:
Hash::hash()
. - For large data:
Keccak
.
Modules
version_info |
|
Structs
Error | Error |
Keccak | Keccak |
Enums
Hash | Hash functions |
Constants
CODE_NAME | Crate code name |
HEX_STRS | A slice of hexadecimal strings of all |
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 |
Type Definitions
IoResult | Result for I/O functions |
Result | Result type used in this crate |