@Deprecated public final class StreamingAeadKeyTemplates extends Object
KeyTemplate for StreamingAead keys.
One can use these templates to generate new Keyset with
KeysetHandle. To generate a new keyset that contains a AesGcmHkdfStreamingKey,
one can do:
Config.register(StreamingAeadConfig.TINK_1_0_0);
KeysetHandle handle = KeysetHandle.generateNew(StreamingAeadKeyTemplates.AES128_GCM_HKDF_4KB);
StreamingAead ags = handle.getPrimitive(StreamingAead.class);
| Modifier and Type | Field and Description |
|---|---|
static com.google.crypto.tink.proto.KeyTemplate |
AES128_CTR_HMAC_SHA256_4KB
Deprecated.
A
KeyTemplate that generates new instances of AesCtrHmacStreamingKey with the following parameters:
Size of the main key: 16 bytes
HKDF algo: HMAC-SHA256
Size of AES-CTR derived keys: 16 bytes
Tag algo: HMAC-SHA256
Tag size: 32 bytes
Ciphertext segment size: 4096
|
static com.google.crypto.tink.proto.KeyTemplate |
AES128_GCM_HKDF_4KB
Deprecated.
A
KeyTemplate that generates new instances of AesGcmHkdfStreamingKey with the following parameters:
Size of the main key: 16 bytes
HKDF algo: HMAC-SHA256
Size of AES-GCM derived keys: 16 bytes
Ciphertext segment size: 4096 bytes
|
static com.google.crypto.tink.proto.KeyTemplate |
AES256_CTR_HMAC_SHA256_4KB
Deprecated.
A
KeyTemplate that generates new instances of AesCtrHmacStreamingKey with the following parameters:
Size of the main key: 32 bytes
HKDF algo: HMAC-SHA256
Size of AES-CTR derived keys: 32 bytes
Tag algo: HMAC-SHA256
Tag size: 32 bytes
Ciphertext segment size: 4096
|
static com.google.crypto.tink.proto.KeyTemplate |
AES256_GCM_HKDF_1MB
Deprecated.
A
KeyTemplate that generates new instances of AesGcmHkdfStreamingKey with the following parameters:
Size of the main key: 32 bytes
HKDF algo: HMAC-SHA256
Size of AES-GCM derived keys: 32 bytes
Ciphertext segment size: 1048576 bytes (1 MB)
|
static com.google.crypto.tink.proto.KeyTemplate |
AES256_GCM_HKDF_4KB
Deprecated.
A
KeyTemplate that generates new instances of AesGcmHkdfStreamingKey with the following parameters:
Size of the main key: 32 bytes
HKDF algo: HMAC-SHA256
Size of AES-GCM derived keys: 32 bytes
Ciphertext segment size: 4096 bytes
|
| Constructor and Description |
|---|
StreamingAeadKeyTemplates()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static com.google.crypto.tink.proto.KeyTemplate |
createAesCtrHmacStreamingKeyTemplate(int mainKeySize,
com.google.crypto.tink.proto.HashType hkdfHashType,
int derivedKeySize,
com.google.crypto.tink.proto.HashType macHashType,
int tagSize,
int ciphertextSegmentSize)
Deprecated.
|
static com.google.crypto.tink.proto.KeyTemplate |
createAesGcmHkdfStreamingKeyTemplate(int mainKeySize,
com.google.crypto.tink.proto.HashType hkdfHashType,
int derivedKeySize,
int ciphertextSegmentSize)
Deprecated.
|
public static final com.google.crypto.tink.proto.KeyTemplate AES128_CTR_HMAC_SHA256_4KB
KeyTemplate that generates new instances of AesCtrHmacStreamingKey with the following parameters:
public static final com.google.crypto.tink.proto.KeyTemplate AES256_CTR_HMAC_SHA256_4KB
KeyTemplate that generates new instances of AesCtrHmacStreamingKey with the following parameters:
public static final com.google.crypto.tink.proto.KeyTemplate AES128_GCM_HKDF_4KB
KeyTemplate that generates new instances of AesGcmHkdfStreamingKey with the following parameters:
public static final com.google.crypto.tink.proto.KeyTemplate AES256_GCM_HKDF_4KB
KeyTemplate that generates new instances of AesGcmHkdfStreamingKey with the following parameters:
public static final com.google.crypto.tink.proto.KeyTemplate AES256_GCM_HKDF_1MB
KeyTemplate that generates new instances of AesGcmHkdfStreamingKey with the following parameters:
public static com.google.crypto.tink.proto.KeyTemplate createAesCtrHmacStreamingKeyTemplate(int mainKeySize,
com.google.crypto.tink.proto.HashType hkdfHashType,
int derivedKeySize,
com.google.crypto.tink.proto.HashType macHashType,
int tagSize,
int ciphertextSegmentSize)
KeyTemplate containing a AesCtrHmacStreamingKeyFormat with some
specified parameters.public static com.google.crypto.tink.proto.KeyTemplate createAesGcmHkdfStreamingKeyTemplate(int mainKeySize,
com.google.crypto.tink.proto.HashType hkdfHashType,
int derivedKeySize,
int ciphertextSegmentSize)
KeyTemplate containing a AesGcmHkdfStreamingKeyFormat
with some specified parameters.