Expand description
Provides implementations of the AEAD primitive.
AEAD encryption assures the confidentiality and authenticity of the data. This primitive is CPA secure.
Modules
- Provides subtle implementations of the
tink_core::Aead
primitive.
Structs
KmsEnvelopeAead
represents an instance of Envelope AEAD.
Constants
- Maximal version of AES-CTR-HMAC keys.
- Type URL of AES-CTR-HMAC keys that Tink supports.
- Maximal version of AES-GCM keys.
- Maximal version of AES-GCM-SIV keys.
- Type URL of AES-GCM-SIV keys that Tink supports.
- Type URL of AES-GCM keys that Tink supports.
- Maximal version of ChaCha20Poly1305 keys.
- Type URL of ChaCha20Poly1305 keys that Tink supports.
- Maximal version of KMS-wrapped keys.
- Type URL of KMS-wrapped keys that Tink supports.
- The upstream Tink version that this Rust port is based on.
- Maximal version of XChaCha20Poly1305 keys.
- Type URL of XChaCha20Poly1305 keys that Tink supports.
Functions
- Return a
KeyTemplate
that generates an AES-CTR-HMAC-AEAD key with the following parameters: - Return a
KeyTemplate
that generates an AES-GCM key with the following parameters: - Return a
KeyTemplate
that generates an AES-GCM-SIV key with the following parameters: - Return a
KeyTemplate
that generates an AES-CTR-HMAC-AEAD key with the following parameters: - Return a
KeyTemplate
that generates an AES-CTR-HMAC-AEAD key with the following parameters: - Return a
KeyTemplate
that generates an AES-GCM key with the following parameters: - Return a
KeyTemplate
that generates an AES-GCM key with the following parameters: - Return a
KeyTemplate
that generates an AES-GCM-SIV key with the following parameters: - Return a
KeyTemplate
that generates an AES-GCM-SIV key with the following parameters: - Return a
KeyTemplate
that generates a CHACHA20_POLY1305 key. - Initialize the
tink-aead
crate, registering its primitives so they are available via tink-core. - Return a
KeyTemplate
that generates aKmsEnvelopeAead
key for a given KEK in remote KMS. Keys generated by this key template uses RAW output prefix to make them compatible with the remote KMS’ encrypt/decrypt operations. Unlike other templates, when you generate new keys with this template, Tink does not generate new key material, but only creates a reference to the remote KEK. - Returns a
tink_core::Aead
primitive from the given keyset handle. - Return a
KeyTemplate
that generates a XCHACHA20_POLY1305 key.