- <init>
Constructs a CryptoOutputStream.
- write
Overrides the java.io.OutputStream#write(byte[],int,int). Encryption is buffer
based. If there is en
- close
Overrides the OutputStream#close(). Closes this output stream and releases any
system resources asso
- flush
Overrides the OutputStream#flush(). To flush, we need to encrypt the data in the
buffer and write to
- checkStream
Checks whether the stream is closed.
- encrypt
Does the encryption, input is #inBuffer and output is #outBuffer.
- encryptFinal
Does final encryption of the last data.
- freeBuffers
Forcibly free the direct buffers.