Module hawk::crypto

source ·
Expand description

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§

Traits§

  • A trait encapsulating the cryptographic operations required by this library.
  • Type-erased hash context type.
  • Type-erased hmac key type.