public final class DeterministicAeadKeyTemplates extends Object
KeyTemplate for DeterministicAead keys. 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 = DeterministicAeadFactory.getPrimitive(handle);
| Modifier and Type | Field and Description |
|---|---|
static KeyTemplate |
AES256_SIV
A
KeyTemplate that generates new instances of AesSivKey with a 64-byte key. |
| Constructor and Description |
|---|
DeterministicAeadKeyTemplates() |
| 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.