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.