Module hmac
rc_
crypto
0.1.0
Module hmac
Module Items
Structs
Functions
In crate rc_
crypto
Modules
aead
agreement
constant_time
contentsignature
digest
ece_crypto
hkdf
hmac
pbkdf2
rand
signature
Structs
Error
Enums
ErrorKind
Functions
ensure_initialized
Type Aliases
Result
rc_crypto
Module
hmac
Copy item path
Settings
Help
Summary
Source
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.
Signing
Key
A key to use for HMAC signing.
Verification
Key
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
.