| Modifier and Type | Field and Description |
|---|---|
static TinkFipsUtil.AlgorithmFipsCompatibility |
FIPS |
static int |
IV_SIZE_IN_BYTES |
static int |
TAG_SIZE_IN_BYTES |
| Constructor and Description |
|---|
InsecureNonceAesGcmJce(byte[] key,
boolean prependIv) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] iv,
byte[] ciphertext,
byte[] associatedData)
On Android KitKat (API level 19) this method does not support non null or non empty
associatedData. |
byte[] |
encrypt(byte[] iv,
byte[] plaintext,
byte[] associatedData)
On Android KitKat (API level 19) this method does not support non null or non empty
associatedData. |
public static final TinkFipsUtil.AlgorithmFipsCompatibility FIPS
public static final int IV_SIZE_IN_BYTES
public static final int TAG_SIZE_IN_BYTES
public InsecureNonceAesGcmJce(byte[] key,
boolean prependIv)
throws GeneralSecurityException
GeneralSecurityExceptionpublic byte[] encrypt(byte[] iv,
byte[] plaintext,
byte[] associatedData)
throws GeneralSecurityException
associatedData. It might not work at all in older versions.GeneralSecurityExceptionpublic byte[] decrypt(byte[] iv,
byte[] ciphertext,
byte[] associatedData)
throws GeneralSecurityException
associatedData. It might not work at all in older versions.GeneralSecurityException