rc_crypto

Module hmac

Source

Structs§

  • A calculated signature value. This is a type-safe wrappper that discourages attempts at comparing signatures for equality, which might naively be done using a non-constant-time comparison.
  • A key to use for HMAC signing.
  • A key to use for HMAC authentication.

Functions§

  • Calculate the HMAC of data using key.
  • Calculate the HMAC of data using key and verify it corresponds to the provided signature.
  • Equivalent to verify but allows the consumer to pass a SigningKey.