public final class EciesAeadHkdfPrivateKeyManager extends Object
EciesAeadHkdfPrivateKey keys and produces new instances of
EciesAeadHkdfHybridDecrypt.| Modifier and Type | Method and Description |
|---|---|
static KeyTemplate |
eciesP256HkdfHmacSha256Aes128CtrHmacSha256Template() |
static KeyTemplate |
eciesP256HkdfHmacSha256Aes128GcmTemplate() |
static KeyTemplate |
rawEciesP256HkdfHmacSha256Aes128CtrHmacSha256CompressedTemplate() |
static KeyTemplate |
rawEciesP256HkdfHmacSha256Aes128GcmCompressedTemplate() |
static void |
registerPair(boolean newKeyAllowed)
Registers the
EciesAeadHkdfPrivateKeyManager and the EciesAeadHkdfPublicKeyManager with the registry, so that the the EciesAeadHkdfKeys can be used
with Tink. |
public static void registerPair(boolean newKeyAllowed)
throws GeneralSecurityException
EciesAeadHkdfPrivateKeyManager and the EciesAeadHkdfPublicKeyManager with the registry, so that the the EciesAeadHkdfKeys can be used
with Tink.GeneralSecurityExceptionpublic static final KeyTemplate eciesP256HkdfHmacSha256Aes128GcmTemplate()
KeyTemplate that generates new instances of ECIES-AEAD-HKDF key pairs with
the following parameters:
KeyTemplate.OutputPrefixType#TINK
Unlike other key templates that use AES-GCM, the instances of HybridDecrypt
generated by this key template has no limitation on Android KitKat (API level 19). They
might not work in older versions though.
public static final KeyTemplate rawEciesP256HkdfHmacSha256Aes128GcmCompressedTemplate()
KeyTemplate that generates new instances of ECIES-AEAD-HKDF key pairs with
the following parameters:
KeyTemplate.OutputPrefixType#RAW (no prefix)
Unlike other key templates that use AES-GCM, the instances of HybridDecrypt
generated by this key template has no limitation on Android KitKat (API level 19). They
might not work in older versions though.
public static final KeyTemplate eciesP256HkdfHmacSha256Aes128CtrHmacSha256Template()
KeyTemplate that generates new instances of ECIES-AEAD-HKDF key pairs with
the following parameters:
KeyTemplate.OutputPrefixType#TINK
public static final KeyTemplate rawEciesP256HkdfHmacSha256Aes128CtrHmacSha256CompressedTemplate()
KeyTemplate that generates new instances of ECIES-AEAD-HKDF key pairs with
the following parameters:
KeyTemplate.OutputPrefixType#RAW (no prefix)