| Modifier and Type | Field and Description |
|---|---|
| protected String | |
| protected boolean | |
| protected byte[] | |
| protected int | |
| protected int | |
| protected byte[] | |
| protected int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAlgorithmName()
Implements org. Return the name of the algorithm. |
| public int | |
| public int | |
| public byte[] | getMac()
Implements org. Return the value of the MAC associated with the last stream processed. |
| public void | init(boolean
true if we are setting up for encryption, false otherwise. forEncryption, CipherParameters the necessary parameters for the underlying cipher to be initialised. params)Implements org. initialise the underlying cipher. |
| protected abstract void | |
| public int | processByte(byte
the byte to be processed. in, byte[] the output buffer the processed byte goes into. out, int the offset into the output byte array the processed data starts at. outOff)Implements org. encrypt/decrypt a single byte. |
| public void | |
| protected void |
| algorithmName | back to summary |
|---|---|
| protected String algorithmName | |
| forEncryption | back to summary |
|---|---|
| protected boolean forEncryption | |
| initialAssociatedText | back to summary |
|---|---|
| protected byte[] initialAssociatedText | |
| IV_SIZE | back to summary |
|---|---|
| protected int IV_SIZE | |
| KEY_SIZE | back to summary |
|---|---|
| protected int KEY_SIZE | |
| mac | back to summary |
|---|---|
| protected byte[] mac | |
| MAC_SIZE | back to summary |
|---|---|
| protected int MAC_SIZE | |
| AEADBaseEngine | back to summary |
|---|---|
| pack-priv AEADBaseEngine() | |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Implements org. Doc from org. Return the name of the algorithm. | |
| getIVBytesSize | back to summary |
|---|---|
| public int getIVBytesSize() | |
| getKeyBytesSize | back to summary |
|---|---|
| public int getKeyBytesSize() | |
| getMac | back to summary |
|---|---|
| public byte[] getMac() Implements org. Doc from org. Return the value of the MAC associated with the last stream processed.
| |
| init | back to summary |
|---|---|
| public void init(boolean forEncryption, CipherParameters params) Implements org. Doc from org. initialise the underlying cipher. Parameter can either be an AEADParameters or a ParametersWithIV object.
| |
| init | back to summary |
|---|---|
| protected abstract void init(byte[] key, byte[] iv) | |
| processByte | back to summary |
|---|---|
| public int processByte(byte in, byte[] out, int outOff) throws DataLengthException Implements org. Doc from org. encrypt/decrypt a single byte.
| |
| reset | back to summary |
|---|---|
| public void reset() Implements org. Doc from org. Reset the cipher. After resetting the cipher is in the same state as it was after the last init (if there was one). | |
| reset | back to summary |
|---|---|
| protected void reset(boolean clearMac) | |