| Modifier and Type | Class and Description |
|---|---|
| private class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract BufferedBlockCipher | |
| public final InputDecryptor | createInputDecryptor(SymmetricKey
the key to initialize the encryptor with. key, final T the parameters to use to initialize the encryptor. parameters)Implements org. |
| public OutputDecryptor | createOutputDecryptor(SymmetricKey
the key to initialize the encryptor with. key, final T the parameters to use to initialize the encryptor. parameters)Implements org. |
| public final OutputEncryptor | createOutputEncryptor(SymmetricKey
the key to initialize the encryptor with. key, final T the parameters to use to initialize the encryptor. parameters)Implements org. |
| GuardedSymmetricOperatorFactory | back to summary |
|---|---|
| pack-priv GuardedSymmetricOperatorFactory() | |
| createCipher | back to summary |
|---|---|
| protected abstract BufferedBlockCipher createCipher(boolean forEncryption, SymmetricKey key, T parameters, SecureRandom random) | |
| createInputDecryptor | back to summary |
|---|---|
| public final InputDecryptor Implements org. Doc from org. Return a decryptor that operates on an input stream.
| |
| createOutputDecryptor | back to summary |
|---|---|
| public OutputDecryptor Implements org. Doc from org. Return a decryptor that operates on an output stream.
| |
| createOutputEncryptor | back to summary |
|---|---|
| public final OutputEncryptor Implements org. Doc from org. Return an encryptor that operates on an output stream.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final BufferedBlockCipher | |
| private final SymmetricKey | |
| private final T |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public CipherOutputStream | getEncryptingStream(OutputStream
the output stream to collect the encrypted data in. out)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. |
| public OutputEncryptor | withSecureRandom(SecureRandom
the SecureRandom to use. random)Implements org. |
| cipher | back to summary |
|---|---|
| private final BufferedBlockCipher cipher | |
| key | back to summary |
|---|---|
| private final SymmetricKey key | |
| parameters | back to summary |
|---|---|
| private final T parameters | |
| OutEncryptor | back to summary |
|---|---|
| public OutEncryptor(SymmetricKey key, T parameters, SecureRandom random) | |
| getEncryptingStream | back to summary |
|---|---|
| public CipherOutputStream getEncryptingStream(OutputStream out) Implements org. Doc from org. Return a stream which will encrypt it's input writing the results to out.
| |
| 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.
| |
| withSecureRandom | back to summary |
|---|---|
| public OutputEncryptor Implements org. Doc from org. Create a version of T using the SecureRandom random.
| |