[][src]Module rc_crypto::hmac

Structs

Signature

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.

SigningKey

A key to use for HMAC signing.

VerificationKey

A key to use for HMAC authentication.

Functions

sign

Calculate the HMAC of data using key.

verify

Calculate the HMAC of data using key and verify it corresponds to the provided signature.

verify_with_own_key

Equivalent to verify but allows the consumer to pass a SigningKey.