public final class PredefinedAeadParameters extends Object
Parameters objects for creating new instances of
AeadKey.
Note: if you want to keep dependencies small, consider inlining the constants here.
| Modifier and Type | Field and Description |
|---|---|
static AesCtrHmacAeadParameters |
AES128_CTR_HMAC_SHA256
A
Parameters object for generating new instances of AesCtrHmacAeadKey with 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
|
static AesEaxParameters |
AES128_EAX
A
Parameters object for generating new instances of AesEaxKey with the following parameters:
Key size: 16 bytes
IV size: 16 bytes
|
static AesGcmParameters |
AES128_GCM
A
Parameters object for generating new instances of AesGcmKey with the following parameters:
Key size: 16 bytes
|
static AesCtrHmacAeadParameters |
AES256_CTR_HMAC_SHA256
A
Parameters object for generating new instances of AesCtrHmacAeadKey with 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
|
static AesEaxParameters |
AES256_EAX
A
Parameters object for generating new instances of AesEaxKey with the following parameters:
Key size: 32 bytes
IV size: 16 bytes
|
static AesGcmParameters |
AES256_GCM
A
Parameters object for generating new instances of AesGcmKey with the following parameters:
Key size: 32 bytes
|
static ChaCha20Poly1305Parameters |
CHACHA20_POLY1305
A
Parameters object that generates new instances of ChaCha20Poly1305Key. |
static XAesGcmParameters |
X_AES_GCM_8_BYTE_SALT_NO_PREFIX
Deprecated.
Use
XAES_256_GCM_160_BIT_NONCE_NO_PREFIX instead. |
static XAesGcmParameters |
XAES_256_GCM_160_BIT_NONCE_NO_PREFIX
A
Parameters object for generating new instances of XAesGcmKey. |
static XAesGcmParameters |
XAES_256_GCM_192_BIT_NONCE
A
Parameters object for generating new instances of XAesGcmKey. |
static XAesGcmParameters |
XAES_256_GCM_192_BIT_NONCE_NO_PREFIX
A
Parameters object for generating new instances of XAesGcmKey. |
static XChaCha20Poly1305Parameters |
XCHACHA20_POLY1305
A
Parameters object that generates new instances of XChaCha20Poly1305Key. |
public static final AesGcmParameters AES128_GCM
Parameters object for generating new instances of AesGcmKey with the following parameters:
On Android KitKat (API level 19), the Aead instance generated
by this key template does not support associated data. It might not work at all in older
versions.
public static final AesGcmParameters AES256_GCM
Parameters object for generating new instances of AesGcmKey with the following parameters:
On Android KitKat (API level 19), the Aead instance generated
by this key template does not support associated data. It might not work at all in older
versions.
public static final AesEaxParameters AES128_EAX
Parameters object for generating new instances of AesEaxKey with the following parameters:
public static final AesEaxParameters AES256_EAX
Parameters object for generating new instances of AesEaxKey with the following parameters:
public static final AesCtrHmacAeadParameters AES128_CTR_HMAC_SHA256
Parameters object for generating new instances of AesCtrHmacAeadKey with the following parameters:
public static final AesCtrHmacAeadParameters AES256_CTR_HMAC_SHA256
Parameters object for generating new instances of AesCtrHmacAeadKey with the following parameters:
public static final ChaCha20Poly1305Parameters CHACHA20_POLY1305
Parameters object that generates new instances of ChaCha20Poly1305Key.public static final XChaCha20Poly1305Parameters XCHACHA20_POLY1305
Parameters object that generates new instances of XChaCha20Poly1305Key.public static final XAesGcmParameters XAES_256_GCM_192_BIT_NONCE
Parameters object for generating new instances of XAesGcmKey. This follows the algorithm defined in the XAES-256-GCM specification
public static final XAesGcmParameters XAES_256_GCM_192_BIT_NONCE_NO_PREFIX
Parameters object for generating new instances of XAesGcmKey. This follows the algorithm defined in the XAES-256-GCM specification
public static final XAesGcmParameters XAES_256_GCM_160_BIT_NONCE_NO_PREFIX
Parameters object for generating new instances of XAesGcmKey. 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.
@Deprecated public static final XAesGcmParameters X_AES_GCM_8_BYTE_SALT_NO_PREFIX
XAES_256_GCM_160_BIT_NONCE_NO_PREFIX instead.