Package com.google.crypto.tink.aead
Class AesGcmSivKeyManager
- java.lang.Object
-
- com.google.crypto.tink.aead.AesGcmSivKeyManager
-
public final class AesGcmSivKeyManager extends java.lang.ObjectThis key manager generates newAesGcmSivKeykeys and produces new instances ofAesGcmSiv.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyTemplateaes128GcmSivTemplate()Creates and returns aKeyTemplatethat generates new instances of AES-GCM-SIV with the following parameters: Key size: 16 bytes Prefix type:KeyTemplate.OutputPrefixType.TINKstatic KeyTemplateaes256GcmSivTemplate()Creates and returns aKeyTemplatethat generates new instances of AES-GCM-SIV with the following parameters: Key size: 32 bytes Prefix type:KeyTemplate.OutputPrefixType.TINKstatic KeyTemplaterawAes128GcmSivTemplate()Creates and returns aKeyTemplatethat generates new instances of AES-GCM with the following parameters: Key size: 16 bytes Prefix type:KeyTemplate.OutputPrefixType.RAW(no prefix)static KeyTemplaterawAes256GcmSivTemplate()Creates and returns aKeyTemplatethat generates new instances of AES-GCM-SIV with the following parameters: Key size: 32 bytes Prefix type:KeyTemplate.OutputPrefixType.RAW(no prefix)static voidregister(boolean newKeyAllowed)
-
-
-
Method Detail
-
register
public static void register(boolean newKeyAllowed) throws java.security.GeneralSecurityException- Throws:
java.security.GeneralSecurityException
-
aes128GcmSivTemplate
public static final KeyTemplate aes128GcmSivTemplate()
Creates and returns aKeyTemplatethat generates new instances of AES-GCM-SIV with the following parameters:- Key size: 16 bytes
- Prefix type:
KeyTemplate.OutputPrefixType.TINK
-
rawAes128GcmSivTemplate
public static final KeyTemplate rawAes128GcmSivTemplate()
Creates and returns aKeyTemplatethat generates new instances of AES-GCM with the following parameters:- Key size: 16 bytes
- Prefix type:
KeyTemplate.OutputPrefixType.RAW(no prefix)
Keys generated from this template should create ciphertexts compatible with other libraries.
-
aes256GcmSivTemplate
public static final KeyTemplate aes256GcmSivTemplate()
Creates and returns aKeyTemplatethat generates new instances of AES-GCM-SIV with the following parameters:- Key size: 32 bytes
- Prefix type:
KeyTemplate.OutputPrefixType.TINK
-
rawAes256GcmSivTemplate
public static final KeyTemplate rawAes256GcmSivTemplate()
Creates and returns aKeyTemplatethat generates new instances of AES-GCM-SIV with the following parameters:- Key size: 32 bytes
- Prefix type:
KeyTemplate.OutputPrefixType.RAW(no prefix)
Keys generated from this template should create ciphertexts compatible with other libraries.
-
-