public interface EncryptionScheme
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] ciphertext)
Decrypts the given ciphertext into plaintext using the derived key.
|
void |
decrypt(java.io.InputStream in,
java.io.OutputStream out)
Decrypts ciphertext from an input stream into plaintext in the output stream.
|
byte[] |
encrypt(byte[] plaintext)
Encrypts the given plaintext bytes into a byte array of ciphertext using the derived key.
|
void |
encrypt(java.io.InputStream in,
java.io.OutputStream out)
Encrypts the data in the given plaintext input stream into ciphertext in the output stream.
|
byte[] encrypt(byte[] plaintext)
plaintext - Input plaintext bytes.void encrypt(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
EncodingOutputStream to produce ciphertext bytes that encoded as a string data in the output
stream.in - Input stream of plaintext.out - Output stream of ciphertext.java.io.IOException - On stream read/write errors.byte[] decrypt(byte[] ciphertext)
ciphertext - Input ciphertext bytes.void decrypt(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
DecodingInputStream to handle input ciphertext encoded as string data.in - Input stream of ciphertext.out - Output stream of plaintext.java.io.IOException - On stream read/write errors.