Package com.google.crypto.tink.hybrid
Class PredefinedHybridParameters
- java.lang.Object
-
- com.google.crypto.tink.hybrid.PredefinedHybridParameters
-
public final class PredefinedHybridParameters extends java.lang.ObjectPre-generatedParameterobjects forHybridEncryptandHybridDecryptkeys.Note: if you want to keep dependencies small, consider inlining the constants here.
-
-
Field Summary
Fields Modifier and Type Field Description static EciesParametersECIES_P256_HKDF_HMAC_SHA256_AES128_CTR_HMAC_SHA256AKeyTemplatethat generates new instances ofEciesAeadHkdfPrivateKeywith 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 saltstatic EciesParametersECIES_P256_HKDF_HMAC_SHA256_AES128_GCMAKeyTemplatethat generates new instances ofEciesAeadHkdfPrivateKeywith the following parameters: KEM: ECDH over NIST P-256 DEM: AES128-GCM KDF: HKDF-HMAC-SHA256 with an empty saltstatic EciesParametersECIES_P256_HKDF_HMAC_SHA256_AES128_GCM_COMPRESSED_WITHOUT_PREFIXAKeyTemplatethat generates new instances ofEciesAeadHkdfPrivateKeywith the following parameters: KEM: ECDH over NIST P-256 DEM: AES128-GCM KDF: HKDF-HMAC-SHA256 with an empty salt EC Point Format: Compressed OutputPrefixType: RAW
-
-
-
Field Detail
-
ECIES_P256_HKDF_HMAC_SHA256_AES128_GCM
public static final EciesParameters ECIES_P256_HKDF_HMAC_SHA256_AES128_GCM
AKeyTemplatethat generates new instances ofEciesAeadHkdfPrivateKeywith the following parameters:- KEM: ECDH over NIST P-256
- DEM: AES128-GCM
- KDF: HKDF-HMAC-SHA256 with an empty salt
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.
-
ECIES_P256_HKDF_HMAC_SHA256_AES128_GCM_COMPRESSED_WITHOUT_PREFIX
public static final EciesParameters ECIES_P256_HKDF_HMAC_SHA256_AES128_GCM_COMPRESSED_WITHOUT_PREFIX
AKeyTemplatethat generates new instances ofEciesAeadHkdfPrivateKeywith the following parameters:- KEM: ECDH over NIST P-256
- DEM: AES128-GCM
- KDF: HKDF-HMAC-SHA256 with an empty salt
- EC Point Format: Compressed
- OutputPrefixType: RAW
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.
-
ECIES_P256_HKDF_HMAC_SHA256_AES128_CTR_HMAC_SHA256
public static final EciesParameters ECIES_P256_HKDF_HMAC_SHA256_AES128_CTR_HMAC_SHA256
AKeyTemplatethat generates new instances ofEciesAeadHkdfPrivateKeywith 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
-
-