package
1.7.0
Repository: https://github.com/google/tink.git
Documentation: pkg.go.dev

# Packages

Package subtle provides subtle implementations of the Streaming AEAD primitive.

# Functions

AES128CTRHMACSHA256Segment1MBKeyTemplate is a KeyTemplate that generates an AES-CTR-HMAC key with the following parameters: - Main key size: 16 bytes - HKDF algorthim: HMAC-SHA256 - AES-CTR derived key size: 16 bytes - Tag algorithm: HMAC-SHA256 - Tag size: 32 bytes - Ciphertext segment size: 1048576 bytes (1 MB).
AES128CTRHMACSHA256Segment4KBKeyTemplate is a KeyTemplate that generates an AES-CTR-HMAC key with the following parameters: - Main key size: 16 bytes - HKDF algorthim: HMAC-SHA256 - AES-CTR derived key size: 16 bytes - Tag algorithm: HMAC-SHA256 - Tag size: 32 bytes - Ciphertext segment size: 4096 bytes (4 KB).
AES128GCMHKDF1MBKeyTemplate is a KeyTemplate that generates an AES-GCM key with the following parameters: - Main key size: 16 bytes - HKDF algo: HMAC-SHA256 - Size of AES-GCM derived keys: 16 bytes - Ciphertext segment size: 1048576 bytes (1 MB).
AES128GCMHKDF4KBKeyTemplate is a KeyTemplate that generates an AES-GCM key with the following parameters: - Main key size: 16 bytes - HKDF algo: HMAC-SHA256 - Size of AES-GCM derived keys: 16 bytes - Ciphertext segment size: 4096 bytes.
AES256CTRHMACSHA256Segment1MBKeyTemplate is a KeyTemplate that generates an AES-CTR-HMAC key with the following parameters: - Main key size: 32 bytes - HKDF algorthim: HMAC-SHA256 - AES-CTR derived key size: 32 bytes - Tag algorithm: HMAC-SHA256 - Tag size: 32 bytes - Ciphertext segment size: 1048576 bytes (1 MB).
AES256CTRHMACSHA256Segment4KBKeyTemplate is a KeyTemplate that generates an AES-CTR-HMAC key with the following parameters: - Main key size: 32 bytes - HKDF algorthim: HMAC-SHA256 - AES-CTR derived key size: 32 bytes - Tag algorithm: HMAC-SHA256 - Tag size: 32 bytes - Ciphertext segment size: 4096 bytes (4 KB).
AES256GCMHKDF1MBKeyTemplate is a KeyTemplate that generates an AES-GCM key with the following parameters: - Main key size: 32 bytes - HKDF algo: HMAC-SHA256 - Size of AES-GCM derived keys: 32 bytes - Ciphertext segment size: 1048576 bytes (1 MB).
AES256GCMHKDF4KBKeyTemplate is a KeyTemplate that generates an AES-GCM key with the following parameters: - Main key size: 32 bytes - HKDF algo: HMAC-SHA256 - Size of AES-GCM derived keys: 32 bytes - Ciphertext segment size: 4096 bytes.
New returns a StreamingAEAD primitive from the given keyset handle.
NewWithKeyManager returns a StreamingAEAD primitive from the given keyset handle and custom key manager.