Crate tink_mac

Source
Expand description

This crate provides implementations of the tink_core::Mac primitive.

MAC computes a tag for a given message that can be used to authenticate a message. MAC protects data integrity as well as provides for authenticity of the message.

Modules§

subtle
Provides subtle implementations of the tink_core::Mac primitive.

Constants§

CMAC_KEY_VERSION
Maximal version of AES-CMAC keys.
CMAC_TYPE_URL
Type URL of AES-CMAC keys that Tink supports.
HMAC_KEY_VERSION
Maximal version of HMAC keys.
HMAC_TYPE_URL
Type URL of HMAC keys that Tink supports.
UPSTREAM_VERSION
The upstream Tink version that this Rust port is based on.

Functions§

aes_cmac_tag128_key_template
Return a KeyTemplate that generates a AES-CMAC key with the following parameters:
hmac_sha256_tag128_key_template
Return a KeyTemplate that generates a HMAC key with the following parameters:
hmac_sha256_tag256_key_template
Return a KeyTemplate that generates a HMAC key with the following parameters:
hmac_sha512_tag256_key_template
Return a KeyTemplate that generates a HMAC key with the following parameters:
hmac_sha512_tag512_key_template
Return a KeyTemplate that generates a HMAC key with the following parameters:
init
Initialize the tink-daead crate, registering its primitives so they are available via Tink.
new
Create a tink_core::Mac primitive from the given keyset handle.