Package com.google.crypto.tink.aead
Class PredefinedAeadParameters
- java.lang.Object
-
- com.google.crypto.tink.aead.PredefinedAeadParameters
-
public final class PredefinedAeadParameters extends java.lang.ObjectPre-generatedParametersobjects for creating new instances ofAeadKey.Note: if you want to keep dependencies small, consider inlining the constants here.
-
-
Field Summary
Fields Modifier and Type Field Description static AesCtrHmacAeadParametersAES128_CTR_HMAC_SHA256AParametersobject for generating new instances ofAesCtrHmacAeadKeywith the following parameters: AES key size: 16 bytes AES CTR IV size: 16 byte HMAC key size: 32 bytes HMAC tag size: 16 bytes HMAC hash function: SHA256static AesEaxParametersAES128_EAXAParametersobject for generating new instances ofAesEaxKeywith the following parameters: Key size: 16 bytes IV size: 16 bytesstatic AesGcmParametersAES128_GCMAParametersobject for generating new instances ofAesGcmKeywith the following parameters: Key size: 16 bytesstatic AesCtrHmacAeadParametersAES256_CTR_HMAC_SHA256AParametersobject for generating new instances ofAesCtrHmacAeadKeywith the following parameters: AES key size: 32 bytes AES CTR IV size: 16 byte HMAC key size: 32 bytes HMAC tag size: 32 bytes HMAC hash function: SHA256static AesEaxParametersAES256_EAXAParametersobject for generating new instances ofAesEaxKeywith the following parameters: Key size: 32 bytes IV size: 16 bytesstatic AesGcmParametersAES256_GCMAParametersobject for generating new instances ofAesGcmKeywith the following parameters: Key size: 32 bytesstatic ChaCha20Poly1305ParametersCHACHA20_POLY1305AParametersobject that generates new instances ofChaCha20Poly1305Key.static XAesGcmParametersX_AES_GCM_8_BYTE_SALT_NO_PREFIXDeprecated.UseXAES_256_GCM_160_BIT_NONCE_NO_PREFIXinstead.static XAesGcmParametersXAES_256_GCM_160_BIT_NONCE_NO_PREFIXAParametersobject for generating new instances ofXAesGcmKey.static XAesGcmParametersXAES_256_GCM_192_BIT_NONCEAParametersobject for generating new instances ofXAesGcmKey.static XAesGcmParametersXAES_256_GCM_192_BIT_NONCE_NO_PREFIXAParametersobject for generating new instances ofXAesGcmKey.static XChaCha20Poly1305ParametersXCHACHA20_POLY1305AParametersobject that generates new instances ofXChaCha20Poly1305Key.
-
-
-
Field Detail
-
AES128_GCM
public static final AesGcmParameters AES128_GCM
AParametersobject for generating new instances ofAesGcmKeywith the following parameters:- Key size: 16 bytes
On Android KitKat (API level 19), the
Aeadinstance generated by this key template does not support associated data. It might not work at all in older versions.
-
AES256_GCM
public static final AesGcmParameters AES256_GCM
AParametersobject for generating new instances ofAesGcmKeywith the following parameters:- Key size: 32 bytes
On Android KitKat (API level 19), the
Aeadinstance generated by this key template does not support associated data. It might not work at all in older versions.
-
AES128_EAX
public static final AesEaxParameters AES128_EAX
AParametersobject for generating new instances ofAesEaxKeywith the following parameters:- Key size: 16 bytes
- IV size: 16 bytes
-
AES256_EAX
public static final AesEaxParameters AES256_EAX
AParametersobject for generating new instances ofAesEaxKeywith the following parameters:- Key size: 32 bytes
- IV size: 16 bytes
-
AES128_CTR_HMAC_SHA256
public static final AesCtrHmacAeadParameters AES128_CTR_HMAC_SHA256
AParametersobject for generating new instances ofAesCtrHmacAeadKeywith the following parameters:- AES key size: 16 bytes
- AES CTR IV size: 16 byte
- HMAC key size: 32 bytes
- HMAC tag size: 16 bytes
- HMAC hash function: SHA256
-
AES256_CTR_HMAC_SHA256
public static final AesCtrHmacAeadParameters AES256_CTR_HMAC_SHA256
AParametersobject for generating new instances ofAesCtrHmacAeadKeywith the following parameters:- AES key size: 32 bytes
- AES CTR IV size: 16 byte
- HMAC key size: 32 bytes
- HMAC tag size: 32 bytes
- HMAC hash function: SHA256
-
CHACHA20_POLY1305
public static final ChaCha20Poly1305Parameters CHACHA20_POLY1305
AParametersobject that generates new instances ofChaCha20Poly1305Key.
-
XCHACHA20_POLY1305
public static final XChaCha20Poly1305Parameters XCHACHA20_POLY1305
AParametersobject that generates new instances ofXChaCha20Poly1305Key.
-
XAES_256_GCM_192_BIT_NONCE
public static final XAesGcmParameters XAES_256_GCM_192_BIT_NONCE
AParametersobject for generating new instances ofXAesGcmKey. This follows the algorithm defined in the XAES-256-GCM specification- Key size: 32 bytes
- Nonce size: 24 bytes (12 bytes of salt, 12 bytes of AES-GCM IV)
- Salt size: 12 bytes
- Tag size: 16 bytes
- Output prefix: TINK
-
XAES_256_GCM_192_BIT_NONCE_NO_PREFIX
public static final XAesGcmParameters XAES_256_GCM_192_BIT_NONCE_NO_PREFIX
AParametersobject for generating new instances ofXAesGcmKey. This follows the algorithm defined in the XAES-256-GCM specification- Key size: 32 bytes
- Nonce size: 24 bytes (12 bytes of salt, 12 bytes of AES-GCM IV)
- Salt size: 12 bytes
- Tag size: 16 bytes
- Output prefix: NO_PREFIX
-
XAES_256_GCM_160_BIT_NONCE_NO_PREFIX
public static final XAesGcmParameters XAES_256_GCM_160_BIT_NONCE_NO_PREFIX
AParametersobject for generating new instances ofXAesGcmKey. This follows the algorithm defined in the XAES-256-GCM specification, except that the nonce size is 160 bits instead of 192 bits. The remaining 4 bytes are padded with zeros.- Key size: 32 bytes
- Nonce size: 20 bytes (8 bytes of salt, 12 bytes of AES-GCM IV)
- Salt size: 8 bytes
- Tag size: 16 bytes
- Output prefix: NO_PREFIX
-
X_AES_GCM_8_BYTE_SALT_NO_PREFIX
@Deprecated public static final XAesGcmParameters X_AES_GCM_8_BYTE_SALT_NO_PREFIX
Deprecated.UseXAES_256_GCM_160_BIT_NONCE_NO_PREFIXinstead.
-
-