| Package | Description |
|---|---|
| org.cryptacular.adapter | |
| org.cryptacular.bean | |
| org.cryptacular.util |
| Modifier and Type | Class and Description |
|---|---|
class |
AEADBlockCipherAdapter
Adapts a
AEADBlockCipherAdapter. |
class |
BufferedBlockCipherAdapter
Adapts a
BufferedBlockCipher. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract BlockCipherAdapter |
AbstractBlockCipherBean.newCipher(CiphertextHeader header,
boolean mode)
Creates a new cipher adapter instance suitable for the block cipher used by this class.
|
| Modifier and Type | Method and Description |
|---|---|
private static byte[] |
CipherUtil.decrypt(BlockCipherAdapter cipher,
byte[] data,
int inOff)
Decrypts the given data.
|
private static byte[] |
CipherUtil.encrypt(BlockCipherAdapter cipher,
byte[] header,
byte[] data)
Encrypts the given data.
|
private static void |
CipherUtil.process(BlockCipherAdapter cipher,
java.io.InputStream input,
java.io.OutputStream output)
Performs encryption or decryption on the given input stream based on the underlying cipher mode and writes the
result to the given output stream.
|