Module tink_streaming_aead::subtle[][src]

Expand description

Provides subtle implementations of the Streaming AEAD primitive.

Modules

noncebased

Provide a reusable streaming AEAD framework.

Structs

AesCtrHmac

AesCtrHmac implements streaming AEAD encryption using AES-CTR and HMAC.

AesGcmHkdf

AesGcmHkdf implements streaming AEAD encryption using AES-GCM.

Enums

AesVariant

Supported AES variants.

Constants

AES_CTR_HMAC_KEY_SIZE_IN_BYTES

The size of the HMAC key.

AES_CTR_HMAC_NONCE_PREFIX_SIZE_IN_BYTES

The size of the nonce prefix.

AES_CTR_HMAC_NONCE_SIZE_IN_BYTES

The size of the nonces used as IVs for CTR.

AES_GCM_HKDF_NONCE_PREFIX_SIZE_IN_BYTES

The size of the randomly generated nonce prefix.

AES_GCM_HKDF_NONCE_SIZE_IN_BYTES

The size of the nonces used for GCM.

AES_GCM_HKDF_TAG_SIZE_IN_BYTES

The size of the tags of each ciphertext segment.

Functions

validate_aes_key_size

Check if the given key size is a valid AES key size.