Package com.google.crypto.tink.daead
Class DeterministicAeadKeyTemplates
- java.lang.Object
-
- com.google.crypto.tink.daead.DeterministicAeadKeyTemplates
-
@Deprecated public final class DeterministicAeadKeyTemplates extends java.lang.ObjectDeprecated.UsePredefinedDeterministicAeadParametersinstead.Pre-generatedKeyTemplateforDeterministicAeadkeys.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 a singleAesSivKey, one can do:DeterministicAeadConfig.register(); KeysetHandle handle = KeysetHandle.generateNew(DeterministicAeadKeyTemplates.AES256_SIV); DeterministicAead daead = handle.getPrimitive(RegistryConfiguration.get(), DeterministicAead.class);- Since:
- 1.1.0
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.crypto.tink.proto.KeyTemplateAES256_SIVDeprecated.AKeyTemplatethat generates new instances ofAesSivKeywith a 64-byte key.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static com.google.crypto.tink.proto.KeyTemplatecreateAesSivKeyTemplate(int keySize)Deprecated.
-