| Modifier and Type | Class and Description |
|---|---|
| protected static class | BaseGCMCipher.
Algorithm parameters for AES/GCM that assumes the IV uses an 8-byte counter field as its least significant bytes. |
| Modifier and Type | Field and Description |
|---|---|
| protected boolean | |
| protected Cipher. | |
| protected BaseGCMCipher. | |
| protected SecretKey |
| Access | Constructor and Description |
|---|---|
| public | BaseGCMCipher(int ivsize, int authSize, int kdfSize, String algorithm, int keySize, String transformation, int blkSize)
|
| Modifier and Type | Method and Description |
|---|---|
| protected Cipher | createCipherInstance(Cipher.
Overrides org.
|
| protected Cipher | |
| public void | update(byte[]
The input/output bytes input, int The offset of the data in the data buffer inputOffset, int The number of bytes to update, starting at the given offset; must be a multiple of the
cipher's block size inputLen)Overrides org. Implements org. Performs in-place encryption or decryption on the given data. |
| public void | updateAAD(byte[]
The additional data to authenticate data, int The offset of the additional data in the buffer offset, int The number of bytes in the buffer to use for authentication length)Overrides org. Implements org. Adds the provided input data as additional authenticated data during encryption or decryption. |
| initialized | back to summary |
|---|---|
| protected boolean initialized | |
| mode | back to summary |
|---|---|
| protected Cipher. | |
| parameters | back to summary |
|---|---|
| protected BaseGCMCipher. | |
| secretKey | back to summary |
|---|---|
| protected SecretKey secretKey | |
| BaseGCMCipher | back to summary |
|---|---|
| public BaseGCMCipher(int ivsize, int authSize, int kdfSize, String algorithm, int keySize, String transformation, int blkSize) | |
| createCipherInstance | back to summary |
|---|---|
| protected Cipher createCipherInstance(Cipher. Overrides org.
| |
| getInitializedCipherInstance | back to summary |
|---|---|
| protected Cipher getInitializedCipherInstance() throws Exception | |
| update | back to summary |
|---|---|
| public void update(byte[] input, int inputOffset, int inputLen) throws Exception Overrides org. Implements org. Doc from org. Performs in-place encryption or decryption on the given data. | |
| updateAAD | back to summary |
|---|---|
| public void updateAAD(byte[] data, int offset, int length) throws Exception Overrides org. Implements org. Doc from org. Adds the provided input data as additional authenticated data during encryption or decryption. | |
| Modifier and Type | Field and Description |
|---|---|
| protected final long | |
| protected final byte[] |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| protected void |
| initialCounter | back to summary |
|---|---|
| protected final long initialCounter | |
| iv | back to summary |
|---|---|
| protected final byte[] iv | |
| CounterGCMParameterSpec | back to summary |
|---|---|
| protected CounterGCMParameterSpec(int tLen, byte[] src) | |
| getIV | back to summary |
|---|---|
| public byte[] getIV() Overrides javax. Doc from javax. Returns the Initialization Vector (IV).
| |
| incrementCounter | back to summary |
|---|---|
| protected void incrementCounter() | |