| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract AEADBlockCipher | |
| public InputAEADDecryptor | createInputAEADDecryptor(SymmetricKey
the key to use to set up the decryptor. key, final T any additional parameters required to set up the decryptor. parameters)Implements org. |
| public OutputAEADDecryptor | createOutputAEADDecryptor(SymmetricKey
the key to use to set up the decryptor. key, final T any additional parameters required to set up the decryptor. parameters)Implements org. |
| public OutputAEADEncryptor | createOutputAEADEncryptor(SymmetricKey
the key to use to set up the encryptor. key, final T any additional parameters required to set up the encryptor. parameters)Implements org. |
| GuardedAEADOperatorFactory | back to summary |
|---|---|
| pack-priv GuardedAEADOperatorFactory() | |
| createAEADCipher | back to summary |
|---|---|
| protected abstract AEADBlockCipher createAEADCipher(boolean forEncryption, SymmetricKey key, T parameters) | |
| createInputAEADDecryptor | back to summary |
|---|---|
| public InputAEADDecryptor Implements org. Doc from org. Create an object for decrypting input and handling AAD data.
| |
| createOutputAEADDecryptor | back to summary |
|---|---|
| public OutputAEADDecryptor Implements org. Doc from org. Create an object for decrypting output and handling AAD data.
| |
| createOutputAEADEncryptor | back to summary |
|---|---|
| public OutputAEADEncryptor Implements org. Doc from org. Create an object for encrypting output and handling AAD data.
| |
| Modifier and Type | Field and Description |
|---|---|
| private AEADBlockCipher |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | write(byte[]
the data. buf, int the start offset in the data. off, int the number of bytes to write. len)Overrides java. len bytes from the specified byte array
starting at offset off to this output stream.
|
| public void | write(int
the b)byte.Implements abstract java. |
| cipher | back to summary |
|---|---|
| private AEADBlockCipher cipher | |
| AADStream | back to summary |
|---|---|
| pack-priv AADStream(AEADBlockCipher cipher) | |
| write | back to summary |
|---|---|
| public void write(byte[] buf, int off, int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |
| write | back to summary |
|---|---|
| public void write(int b) throws IOException Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |
| Modifier and Type | Field and Description |
|---|---|
| private final AEADBlockCipher | |
| private final T |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public UpdateOutputStream | getAADStream()
Implements org. |
| public CipherOutputStream | getEncryptingStream(final OutputStream
the output stream to collect the encrypted data in. out)Implements org. |
| public byte[] | getMAC()
Implements org. |
| public int | getMaxOutputSize(int
the length of the input. inputLen)Implements org. |
| public T | getParameters()
Implements org. |
| public int | getUpdateOutputSize(int
the length of the input. inputLen)Implements org. |
| cipher | back to summary |
|---|---|
| private final AEADBlockCipher cipher | |
| parameters | back to summary |
|---|---|
| private final T parameters | |
| OutEncryptor | back to summary |
|---|---|
| pack-priv OutEncryptor(SymmetricKey key, T parameters) | |
| getAADStream | back to summary |
|---|---|
| public UpdateOutputStream getAADStream() Implements org. Doc from org. Return a stream to write associated data to in order to have it incorporated into the AEAD cipher's MAC.
| |
| getEncryptingStream | back to summary |
|---|---|
| public CipherOutputStream getEncryptingStream(final OutputStream out) Implements org. Doc from org. Return a stream which will encrypt it's input writing the results to out.
| |
| getMAC | back to summary |
|---|---|
| public byte[] getMAC() Implements org. Doc from org. Return the final value of AEAD cipher's MAC.
| |
| getMaxOutputSize | back to summary |
|---|---|
| public int getMaxOutputSize(int inputLen) Implements org. Doc from org. Return the size of the output buffer required for a write() plus a close() with the write() being passed inputLen bytes. The returned size may be dependent on the initialisation of this cipher and may not be accurate once subsequent input data is processed as the cipher may add, add or remove padding, as it sees fit.
| |
| getParameters | back to summary |
|---|---|
| public T getParameters() Implements org. Doc from org. Return the parameters for this cipher.
| |
| getUpdateOutputSize | back to summary |
|---|---|
| public int getUpdateOutputSize(int inputLen) Implements org. Doc from org. Return the size of the output buffer required for a write() with the write() being passed inputLen bytes and just updating the cipher output. The returned size may be dependent on the state of this cipher.
| |