Package com.google.crypto.tink.hybrid
Class EciesAeadHkdfPrivateKeyManager
- java.lang.Object
-
- com.google.crypto.tink.hybrid.EciesAeadHkdfPrivateKeyManager
-
public final class EciesAeadHkdfPrivateKeyManager extends java.lang.ObjectThis key manager generates newEciesAeadHkdfPrivateKeykeys and produces new instances ofEciesAeadHkdfHybridDecrypt.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyTemplateeciesP256HkdfHmacSha256Aes128CtrHmacSha256Template()static KeyTemplateeciesP256HkdfHmacSha256Aes128GcmTemplate()static KeyTemplaterawEciesP256HkdfHmacSha256Aes128CtrHmacSha256CompressedTemplate()static KeyTemplaterawEciesP256HkdfHmacSha256Aes128GcmCompressedTemplate()static voidregisterPair(boolean newKeyAllowed)Registers theEciesAeadHkdfPrivateKeyManagerand theEciesAeadHkdfPublicKeyManagerwith the registry, so that the the EciesAeadHkdfKeys can be used with Tink.
-
-
-
Method Detail
-
registerPair
public static void registerPair(boolean newKeyAllowed) throws java.security.GeneralSecurityExceptionRegisters theEciesAeadHkdfPrivateKeyManagerand theEciesAeadHkdfPublicKeyManagerwith the registry, so that the the EciesAeadHkdfKeys can be used with Tink.- Throws:
java.security.GeneralSecurityException
-
eciesP256HkdfHmacSha256Aes128GcmTemplate
public static final KeyTemplate eciesP256HkdfHmacSha256Aes128GcmTemplate()
- Returns:
- a
KeyTemplatethat generates new instances of ECIES-AEAD-HKDF key pairs with the following parameters:- KEM: ECDH over NIST P-256
- DEM: AES128-GCM
- KDF: HKDF-HMAC-SHA256 with an empty salt
- EC Point Format: Uncompressed
- Prefix type:
KeyTemplate.OutputPrefixType.TINK
Unlike other key templates that use AES-GCM, the instances of
HybridDecryptgenerated by this key template has no limitation on Android KitKat (API level 19). They might not work in older versions though.
-
rawEciesP256HkdfHmacSha256Aes128GcmCompressedTemplate
public static final KeyTemplate rawEciesP256HkdfHmacSha256Aes128GcmCompressedTemplate()
- Returns:
- a
KeyTemplatethat generates new instances of ECIES-AEAD-HKDF key pairs with the following parameters:- KEM: ECDH over NIST P-256
- DEM: AES128-GCM
- KDF: HKDF-HMAC-SHA256 with an empty salt
- EC Point Format: Compressed
- Prefix type:
KeyTemplate.OutputPrefixType.RAW(no prefix)
Unlike other key templates that use AES-GCM, the instances of
HybridDecryptgenerated by this key template has no limitation on Android KitKat (API level 19). They might not work in older versions though.
-
eciesP256HkdfHmacSha256Aes128CtrHmacSha256Template
public static final KeyTemplate eciesP256HkdfHmacSha256Aes128CtrHmacSha256Template()
- Returns:
- a
KeyTemplatethat generates new instances of ECIES-AEAD-HKDF key pairs with the following parameters:- KEM: ECDH over NIST P-256
- DEM: AES128-CTR-HMAC-SHA256 with the following parameters
- AES key size: 16 bytes
- AES CTR IV size: 16 bytes
- HMAC key size: 32 bytes
- HMAC tag size: 16 bytes
- KDF: HKDF-HMAC-SHA256 with an empty salt
- EC Point Format: Uncompressed
- Prefix type:
KeyTemplate.OutputPrefixType.TINK
-
rawEciesP256HkdfHmacSha256Aes128CtrHmacSha256CompressedTemplate
public static final KeyTemplate rawEciesP256HkdfHmacSha256Aes128CtrHmacSha256CompressedTemplate()
- Returns:
- a
KeyTemplatethat generates new instances of ECIES-AEAD-HKDF key pairs with the following parameters:- KEM: ECDH over NIST P-256
- DEM: AES128-CTR-HMAC-SHA256 with the following parameters
- AES key size: 16 bytes
- AES CTR IV size: 16 bytes
- HMAC key size: 32 bytes
- HMAC tag size: 16 bytes
- KDF: HKDF-HMAC-SHA256 with an empty salt
- EC Point Format: Compressed
- Prefix type:
KeyTemplate.OutputPrefixType.RAW(no prefix)
-
-