Expand description
Provides implementations of the AEAD primitive.
AEAD encryption assures the confidentiality and authenticity of the data. This primitive is CPA secure.
Modules§
- subtle
- Provides subtle implementations of the
tink_core::Aead
primitive.
Structs§
- KmsEnvelope
Aead KmsEnvelopeAead
represents an instance of Envelope AEAD.
Constants§
- AES_
CTR_ HMAC_ AEAD_ KEY_ VERSION - Maximal version of AES-CTR-HMAC keys.
- AES_
CTR_ HMAC_ AEAD_ TYPE_ URL - Type URL of AES-CTR-HMAC keys that Tink supports.
- AES_
GCM_ KEY_ VERSION - Maximal version of AES-GCM keys.
- AES_
GCM_ SIV_ KEY_ VERSION - Maximal version of AES-GCM-SIV keys.
- AES_
GCM_ SIV_ TYPE_ URL - Type URL of AES-GCM-SIV keys that Tink supports.
- AES_
GCM_ TYPE_ URL - Type URL of AES-GCM keys that Tink supports.
- CHA_
CHA20_ POLY1305_ KEY_ VERSION - Maximal version of ChaCha20Poly1305 keys.
- CHA_
CHA20_ POLY1305_ TYPE_ URL - Type URL of ChaCha20Poly1305 keys that Tink supports.
- KMS_
ENVELOPE_ AEAD_ KEY_ VERSION - Maximal version of KMS-wrapped keys.
- KMS_
ENVELOPE_ AEAD_ TYPE_ URL - Type URL of KMS-wrapped keys that Tink supports.
- UPSTREAM_
VERSION - The upstream Tink version that this Rust port is based on.
- X_
CHA_ CHA20_ POLY1305_ KEY_ VERSION - Maximal version of XChaCha20Poly1305 keys.
- X_
CHA_ CHA20_ POLY1305_ TYPE_ URL - Type URL of XChaCha20Poly1305 keys that Tink supports.
Functions§
- aes128_
ctr_ hmac_ sha256_ key_ template - Return a
KeyTemplate
that generates an AES-CTR-HMAC-AEAD key with the following parameters: - aes128_
gcm_ key_ template - Return a
KeyTemplate
that generates an AES-GCM key with the following parameters: - aes128_
gcm_ siv_ key_ template - Return a
KeyTemplate
that generates an AES-GCM-SIV key with the following parameters: - aes256_
ctr_ hmac_ sha256_ key_ template - Return a
KeyTemplate
that generates an AES-CTR-HMAC-AEAD key with the following parameters: - aes256_
ctr_ hmac_ sha512_ key_ template - Return a
KeyTemplate
that generates an AES-CTR-HMAC-AEAD key with the following parameters: - aes256_
gcm_ key_ template - Return a
KeyTemplate
that generates an AES-GCM key with the following parameters: - aes256_
gcm_ no_ prefix_ key_ template - Return a
KeyTemplate
that generates an AES-GCM key with the following parameters: - aes256_
gcm_ siv_ key_ template - Return a
KeyTemplate
that generates an AES-GCM-SIV key with the following parameters: - aes256_
gcm_ siv_ no_ prefix_ key_ template - Return a
KeyTemplate
that generates an AES-GCM-SIV key with the following parameters: - cha_
cha20_ poly1305_ key_ template - Return a
KeyTemplate
that generates a CHACHA20_POLY1305 key. - init
- Initialize the
tink-aead
crate, registering its primitives so they are available via tink-core. - kms_
envelope_ aead_ key_ template - Return a
KeyTemplate
that generates aKmsEnvelopeAead
key for a given KEK in remote KMS. - new
- Returns a
tink_core::Aead
primitive from the given keyset handle. - x_
cha_ cha20_ poly1305_ key_ template - Return a
KeyTemplate
that generates a XCHACHA20_POLY1305 key.