Definition at line 61 of file EncryptedOutputStream.java.
Public Member Functions | |
EncryptedOutputStream (BlockCipher blockCipher, OutputStream out) throws IOException | |
Constructor for block ciphers. | |
EncryptedOutputStream (StreamCipher streamCipher, OutputStream out) | |
Constructor for stream ciphers. | |
void | setKey (String keyStr) |
Set the key. | |
void | setEncrypting (boolean encrypting) throws IOException |
Encrypting can be enabled or disabled temporarily. | |
void | write (int b) throws IOException |
Write a byte. | |
void | write (byte b[], int off, int len) throws IOException |
Write some bytes. | |
void | flush () throws IOException |
Flush the stream. This will write any buffered output bytes. |