public class AESGCMCipher extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAC_SIZE_BITS |
| Constructor and Description |
|---|
AESGCMCipher(boolean forEncryption,
byte[] key,
byte[] iv)
Creates a new instance of
AESGCMCipher. |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
doFinal()
Finishes a multiple-part encryption or decryption operation, depending on how this cipher was initialized
and resets underlying cipher object to the state it was in when previously
initialized via a call to init.
|
byte[] |
update(byte[] b,
int off,
int len)
Continues a multiple-part encryption or decryption operation
(depending on how this cipher was initialized), processing another data
part.
|
public static final int MAC_SIZE_BITS
public AESGCMCipher(boolean forEncryption,
byte[] key,
byte[] iv)
AESGCMCipher.forEncryption - if true the cipher is initialised for
encryption, if false for decryptionkey - the key to be used in the cipheriv - initialization vector to be used in cipherpublic byte[] update(byte[] b,
int off,
int len)
The first len bytes in the b input buffer, starting at off offset inclusive,
are processed, and the result is stored in a new buffer.
b - the input bufferoff - the offset in b where the input startslen - the input lengthpublic byte[] doFinal()
Copyright © 1998–2025 Apryse Group NV. All rights reserved.