public interface IGCMBlockCipher
| Modifier and Type | Method and Description |
|---|---|
void |
doFinal(byte[] plainText,
int i)
Finishes a multiple-part encryption or decryption operation, depending on how this cipher was initialized.
|
int |
getOutputSize(int len)
Returns the length in bytes that an output buffer would need to be in order to hold the result of
the next doFinal operation, given the input length (in bytes).
|
int |
getUpdateOutputSize(int len)
Returns the length in bytes that an output buffer would need to be in order to hold the result of
the next update operation, given the input length (in bytes).
|
void |
init(boolean forEncryption,
byte[] key,
int macSizeBits,
byte[] iv)
Initialize this cipher with a key and a set of algorithm parameters.
|
void |
processBytes(byte[] input,
int inputOffset,
int len,
byte[] output,
int outOffset)
Perform a multiple-part encryption or decryption operation (depending on how this cipher was initialized),
processing another data part.
|
void init(boolean forEncryption,
byte[] key,
int macSizeBits,
byte[] iv)
throws GeneralSecurityException
forEncryption - true to use encrypt mode, false to use decrypt modekey - the encryption keymacSizeBits - MAC size, MAC sizes from 32 bits to 128 bits (must be a multiple of 8)iv - the IV source bufferGeneralSecurityException - in case any error during encryption or decryptionint getUpdateOutputSize(int len)
len - input length (in bytes)void processBytes(byte[] input,
int inputOffset,
int len,
byte[] output,
int outOffset)
throws GeneralSecurityException
input - the input bufferinputOffset - the offset in input where the input startslen - the input lengthoutput - the buffer for the resultoutOffset - the offset in output where the result is storedGeneralSecurityException - in case any error during encryption or decryptionint getOutputSize(int len)
len - input length (in bytes)void doFinal(byte[] plainText,
int i)
throws GeneralSecurityException
plainText - the buffer for the resulti - the offset in output where the result is storedGeneralSecurityException - in case any error during encryption or decryptionCopyright © 1998–2025 Apryse Group NV. All rights reserved.