Skip to main content

Module traits

Module traits 

Source
Expand description

Defines hash function traits.

Traits§

CryptographicallySecureHash
A marker trait that ensures that the marked function is cryptographicall secure.
HashFunction
Represents a general hash function. Unlike core::hash::Hasher trait it doesn’t mandate output type, except that it needs to be [AsRef<[u8]>]. This makes it suitable for implementing larger hash function like SHA.