public final class DeterministicAeadKeyTemplates extends Object
KeyTemplate for DeterministicAead keys.
We recommend to avoid this class in order to keep dependencies small.
Instead, we recommend to use KeysetHandle.generateEntryFromParametersName or KeysetHandle.generateEntryFromParameters.
One can use these templates
to generate new Keyset with KeysetHandle. To generate a new keyset that contains
a single AesSivKey, one can do:
Config.register(DeterministicAeadConfig.TINK_1_1_0); KeysetHandle handle = KeysetHandle.generateNew(DeterministicAeadKeyTemplates.AES256_SIV); DeterministicAead daead = handle.getPrimitive(DeterministicAead.class);
| Modifier and Type | Field and Description |
|---|---|
static KeyTemplate |
AES256_SIV
A
KeyTemplate that generates new instances of AesSivKey with a 64-byte key. |
| Modifier and Type | Method and Description |
|---|---|
static KeyTemplate |
createAesSivKeyTemplate(int keySize) |
public static final KeyTemplate AES256_SIV
KeyTemplate that generates new instances of AesSivKey with a 64-byte key.public static KeyTemplate createAesSivKeyTemplate(int keySize)
KeyTemplate containing a AesSivKeyFormat with some specified
parameters.