Crate tink_streaming_aead

Crate tink_streaming_aead 

Source
Expand description

This crate provides implementations of the streaming AEAD primitive.

AEAD encryption assures the confidentiality and authenticity of the data. This primitive is CPA secure.

Modules§

subtle
Provides subtle implementations of the Streaming AEAD primitive.

Constants§

AES_CTR_HMAC_KEY_VERSION
Maximal version of AES-CTR-HMAC keys.
AES_CTR_HMAC_TYPE_URL
Type URL of AES-CTR-HMAC keys that Tink supports.
AES_GCM_HKDF_KEY_VERSION
Maximal version of AES-GCM-HKDF keys.
AES_GCM_HKDF_TYPE_URL
Type URL of AES-GCM-HKDF keys that Tink supports.
UPSTREAM_VERSION
The upstream Tink version that this Rust port is based on.

Functions§

aes128_ctr_hmac_sha256_segment_1mb_key_template
Return a KeyTemplate that generates an AES-CTR-HMAC key with the following parameters:
aes128_ctr_hmac_sha256_segment_4kb_key_template
Return a KeyTemplate that generates an AES-CTR-HMAC key with the following parameters:
aes128_gcm_hkdf_1mb_key_template
Return a KeyTemplate that generates an AES-GCM key with the following parameters:
aes128_gcm_hkdf_4kb_key_template
Return a KeyTemplate that generates an AES-GCM key with the following parameters:
aes256_ctr_hmac_sha256_segment_1mb_key_template
Return a KeyTemplate that generates an AES-CTR-HMAC key with the following parameters:
aes256_ctr_hmac_sha256_segment_4kb_key_template
Return a KeyTemplate that generates an AES-CTR-HMAC key with the following parameters:
aes256_gcm_hkdf_1mb_key_template
Return a KeyTemplate that generates an AES-GCM key with the following parameters:
aes256_gcm_hkdf_4kb_key_template
Return a KeyTemplate that generates an AES-GCM key with the following parameters:
init
Initialize the tink-streaming-aead crate, registering its primitives so they are available via tink-core.
new
Return a tink_core::StreamingAead primitive from the given keyset handle.