Class CipherOutputStream
java.lang.Object
com.trilead.ssh2.crypto.cipher.CipherOutputStream
CipherOutputStream.
- Version:
- $Id: CipherOutputStream.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) OutputStream(package private) final int(package private) byte[](package private) BlockCipher(package private) byte[](package private) byte[](package private) int(package private) int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidflush()private voidinternal_write(byte[] src, int off, int len) private voidinternal_write(int b) voidwrite(byte[] src, int off, int len) voidwrite(int b) private voidvoidwritePlain(byte[] b, int off, int len) voidwritePlain(int b)
-
Field Details
-
currentCipher
BlockCipher currentCipher -
bo
OutputStream bo -
buffer
byte[] buffer -
enc
byte[] enc -
blockSize
int blockSize -
pos
int pos -
BUFF_SIZE
final int BUFF_SIZE- See Also:
-
out_buffer
byte[] out_buffer -
out_buffer_pos
int out_buffer_pos
-
-
Constructor Details
-
CipherOutputStream
-
-
Method Details
-
internal_write
- Throws:
IOException
-
internal_write
- Throws:
IOException
-
flush
- Throws:
IOException
-
changeCipher
-
writeBlock
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
writePlain
- Throws:
IOException
-
writePlain
- Throws:
IOException
-