Class StreamingAeadKeyTemplates
- java.lang.Object
-
- com.google.crypto.tink.streamingaead.StreamingAeadKeyTemplates
-
@Deprecated public final class StreamingAeadKeyTemplates extends java.lang.ObjectDeprecated.Try using our refaster templates to replace them (see https://github.com/tink-crypto/tink-java/tree/main/tools/refaster). If migration is unclear, please file an issue on https://github.com/tink-crypto/tink-java.Pre-generatedKeyTemplateforStreamingAeadkeys.We recommend to avoid this class in order to keep dependencies small.
- Using this class adds a dependency on protobuf. We hope that eventually it is possible to use Tink without a dependency on protobuf.
- Using this class adds a dependency on classes for all involved key types.
Instead, we recommend to use
KeysetHandle.generateEntryFromParametersNameorKeysetHandle.generateEntryFromParameters.One can use these templates to generate new
KeysetwithKeysetHandle. To generate a new keyset that contains aAesGcmHkdfStreamingKey, one can do:StreamingAeadConfig.register(); KeysetHandle handle = KeysetHandle.generateNew(StreamingAeadKeyTemplates.AES128_GCM_HKDF_4KB); StreamingAead ags = handle.getPrimitive(RegistryConfiguration.get(), StreamingAead.class);- Since:
- 1.1.0
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.crypto.tink.proto.KeyTemplateAES128_CTR_HMAC_SHA256_1MBDeprecated.AKeyTemplatethat generates new instances ofAesCtrHmacStreamingKeywith 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: 1048576 bytes (1 MB)static com.google.crypto.tink.proto.KeyTemplateAES128_CTR_HMAC_SHA256_4KBDeprecated.AKeyTemplatethat generates new instances ofAesCtrHmacStreamingKeywith 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: 4096static com.google.crypto.tink.proto.KeyTemplateAES128_GCM_HKDF_1MBDeprecated.AKeyTemplatethat generates new instances ofAesGcmHkdfStreamingKeywith 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: 1048576 bytes (1 MB)static com.google.crypto.tink.proto.KeyTemplateAES128_GCM_HKDF_4KBDeprecated.AKeyTemplatethat generates new instances ofAesGcmHkdfStreamingKeywith 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 bytesstatic com.google.crypto.tink.proto.KeyTemplateAES256_CTR_HMAC_SHA256_1MBDeprecated.AKeyTemplatethat generates new instances ofAesCtrHmacStreamingKeywith 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: 1048576 bytes (1 MB)static com.google.crypto.tink.proto.KeyTemplateAES256_CTR_HMAC_SHA256_4KBDeprecated.AKeyTemplatethat generates new instances ofAesCtrHmacStreamingKeywith 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: 4096static com.google.crypto.tink.proto.KeyTemplateAES256_GCM_HKDF_1MBDeprecated.AKeyTemplatethat generates new instances ofAesGcmHkdfStreamingKeywith 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.KeyTemplateAES256_GCM_HKDF_4KBDeprecated.AKeyTemplatethat generates new instances ofAesGcmHkdfStreamingKeywith 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
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static com.google.crypto.tink.proto.KeyTemplatecreateAesCtrHmacStreamingKeyTemplate(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.KeyTemplatecreateAesGcmHkdfStreamingKeyTemplate(int mainKeySize, com.google.crypto.tink.proto.HashType hkdfHashType, int derivedKeySize, int ciphertextSegmentSize)Deprecated.
-
-
-
Field Detail
-
AES128_CTR_HMAC_SHA256_4KB
public static final com.google.crypto.tink.proto.KeyTemplate AES128_CTR_HMAC_SHA256_4KB
Deprecated.AKeyTemplatethat generates new instances ofAesCtrHmacStreamingKeywith 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
-
AES128_CTR_HMAC_SHA256_1MB
public static final com.google.crypto.tink.proto.KeyTemplate AES128_CTR_HMAC_SHA256_1MB
Deprecated.AKeyTemplatethat generates new instances ofAesCtrHmacStreamingKeywith 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: 1048576 bytes (1 MB)
-
AES256_CTR_HMAC_SHA256_4KB
public static final com.google.crypto.tink.proto.KeyTemplate AES256_CTR_HMAC_SHA256_4KB
Deprecated.AKeyTemplatethat generates new instances ofAesCtrHmacStreamingKeywith 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
-
AES256_CTR_HMAC_SHA256_1MB
public static final com.google.crypto.tink.proto.KeyTemplate AES256_CTR_HMAC_SHA256_1MB
Deprecated.AKeyTemplatethat generates new instances ofAesCtrHmacStreamingKeywith 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: 1048576 bytes (1 MB)
-
AES128_GCM_HKDF_4KB
public static final com.google.crypto.tink.proto.KeyTemplate AES128_GCM_HKDF_4KB
Deprecated.AKeyTemplatethat generates new instances ofAesGcmHkdfStreamingKeywith 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
-
AES128_GCM_HKDF_1MB
public static final com.google.crypto.tink.proto.KeyTemplate AES128_GCM_HKDF_1MB
Deprecated.AKeyTemplatethat generates new instances ofAesGcmHkdfStreamingKeywith 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: 1048576 bytes (1 MB)
-
AES256_GCM_HKDF_4KB
public static final com.google.crypto.tink.proto.KeyTemplate AES256_GCM_HKDF_4KB
Deprecated.AKeyTemplatethat generates new instances ofAesGcmHkdfStreamingKeywith 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
-
AES256_GCM_HKDF_1MB
public static final com.google.crypto.tink.proto.KeyTemplate AES256_GCM_HKDF_1MB
Deprecated.AKeyTemplatethat generates new instances ofAesGcmHkdfStreamingKeywith 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)
-
-
Method Detail
-
createAesCtrHmacStreamingKeyTemplate
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)Deprecated.- Returns:
- a
KeyTemplatecontaining aAesCtrHmacStreamingKeyFormatwith some specified parameters.
-
createAesGcmHkdfStreamingKeyTemplate
public static com.google.crypto.tink.proto.KeyTemplate createAesGcmHkdfStreamingKeyTemplate(int mainKeySize, com.google.crypto.tink.proto.HashType hkdfHashType, int derivedKeySize, int ciphertextSegmentSize)Deprecated.- Returns:
- a
KeyTemplatecontaining aAesGcmHkdfStreamingKeyFormatwith some specified parameters.
-
-