public final class AesGcmSivKeyManager extends Object
AesGcmSivKey keys and produces new instances of AesGcmSiv.| Modifier and Type | Method and Description |
|---|---|
static KeyTemplate |
aes128GcmSivTemplate()
Creates and returns a
KeyTemplate that generates new instances of AES-GCM-SIV with the
following parameters:
Key size: 16 bytes
Prefix type: KeyTemplate.OutputPrefixType#TINK
|
static KeyTemplate |
aes256GcmSivTemplate()
Creates and returns a
KeyTemplate that generates new instances of AES-GCM-SIV with the
following parameters:
Key size: 32 bytes
Prefix type: KeyTemplate.OutputPrefixType#TINK
|
static KeyTemplate |
rawAes128GcmSivTemplate()
Creates and returns a
KeyTemplate that generates new instances of AES-GCM with the
following parameters:
Key size: 16 bytes
Prefix type: KeyTemplate.OutputPrefixType#RAW (no prefix)
|
static KeyTemplate |
rawAes256GcmSivTemplate()
Creates and returns a
KeyTemplate that generates new instances of AES-GCM-SIV with the
following parameters:
Key size: 32 bytes
Prefix type: KeyTemplate.OutputPrefixType#RAW (no prefix)
|
static void |
register(boolean newKeyAllowed) |
public static void register(boolean newKeyAllowed)
throws GeneralSecurityException
GeneralSecurityExceptionpublic static final KeyTemplate aes128GcmSivTemplate()
KeyTemplate that generates new instances of AES-GCM-SIV with the
following parameters:
KeyTemplate.OutputPrefixType#TINK
public static final KeyTemplate rawAes128GcmSivTemplate()
KeyTemplate that generates new instances of AES-GCM with the
following parameters:
KeyTemplate.OutputPrefixType#RAW (no prefix)
Keys generated from this template should create ciphertexts compatible with other libraries.
public static final KeyTemplate aes256GcmSivTemplate()
KeyTemplate that generates new instances of AES-GCM-SIV with the
following parameters:
KeyTemplate.OutputPrefixType#TINK
public static final KeyTemplate rawAes256GcmSivTemplate()
KeyTemplate that generates new instances of AES-GCM-SIV with the
following parameters:
KeyTemplate.OutputPrefixType#RAW (no prefix)
Keys generated from this template should create ciphertexts compatible with other libraries.