Skip to main content

Crate crypto_hmac

Crate crypto_hmac 

Source
Expand description

HMAC (RFC 2104 / FIPS 198-1) over SHA-256, SHA-384, and SHA-512.

The native and wasm lanes intentionally use the same audited RustCrypto implementation for byte-for-byte semantics.

Structs§

HmacKey
HMAC key material.
HmacTag
HMAC authentication tag bytes.

Constants§

HMAC_MAX_KEY_LENGTH
Maximum accepted HMAC key length in bytes.
HMAC_SHA256_TAG_LENGTH
Length in bytes of an HMAC-SHA-256 tag.
HMAC_SHA384_TAG_LENGTH
Length in bytes of an HMAC-SHA-384 tag.
HMAC_SHA512_TAG_LENGTH
Length in bytes of an HMAC-SHA-512 tag.