Crate digest

Source
Expand description

This crate provides traits which describe functionality of cryptographic hash functions and Message Authentication algorithms.

Traits in this repository are organized into the following levels:

Additionally hash functions implement traits from the standard library: Default, Clone, Write. The latter is feature-gated behind std feature, which is usually enabled by default by hash implementation crates.

Re-exports§

Modules§

  • Type aliases for many constants.
  • Low-level traits operating on blocks and wrappers around them.

Macros§

Structs§

Traits§

  • Convenience wrapper trait covering functionality of cryptographic hash functions with fixed output size.
  • Modification of the Digest trait suitable for trait objects.
  • Trait for hash functions with extendable-output (XOF).
  • Trait for hash functions with extendable-output (XOF) able to reset themselves.
  • Trait for hash functions with fixed-size output.
  • Trait for hash functions with fixed-size output able to reset themselves.
  • Marker trait for cryptographic hash functions.
  • Types which can be initialized from another type (usually block ciphers).
  • Types which can be initialized from key.
  • Convenience wrapper trait covering functionality of Message Authentication algorithms.
  • Marker trait for Message Authentication algorithms.
  • Types which return data with the given size.
  • Resettable types.
  • Types which consume data with byte granularity.
  • Trait for hash functions with variable-size output.
  • Trait for hash functions with variable-size output able to reset themselves.
  • Trait for reader types which are used to extract extendable output from a XOF (extendable-output function) result.

Type Aliases§