[][src]Module hawk::crypto

hawk must perform certain cryptographic operations in order to function, and applications may need control over which library is used for these.

This module can be used for that purpose. If you do not care, this crate can be configured so that a default implementation is provided based on either ring or openssl (via the use_ring and use_openssl features respectively).

Should you need something custom, then you can provide it by implementing Cryptographer and using the [set_cryptographer] or [set_boxed_cryptographer] functions.

Enums

CryptoError

Traits

Cryptographer

A trait encapsulating the cryptographic operations required by this library.

Hasher

Type-erased hash context type.

HmacKey

Type-erased hmac key type.