public final class AesGcmJceUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
IV_SIZE_IN_BYTES |
static int |
TAG_SIZE_IN_BYTES |
| Modifier and Type | Method and Description |
|---|---|
static AlgorithmParameterSpec |
getParams(byte[] iv) |
static AlgorithmParameterSpec |
getParams(byte[] buf,
int offset,
int len) |
static SecretKey |
getSecretKey(byte[] key) |
static Cipher |
getThreadLocalCipher()
Returns a thread-local instance of the AES-GCM cipher.
|
public static final int IV_SIZE_IN_BYTES
public static final int TAG_SIZE_IN_BYTES
public static Cipher getThreadLocalCipher()
public static SecretKey getSecretKey(byte[] key) throws GeneralSecurityException
GeneralSecurityExceptionpublic static AlgorithmParameterSpec getParams(byte[] iv)
public static AlgorithmParameterSpec getParams(byte[] buf, int offset, int len)