Package com.trilead.ssh2.crypto.cipher
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 TypeMethodDescriptionvoid
void
flush()
private void
internal_write
(byte[] src, int off, int len) private void
internal_write
(int b) void
write
(byte[] src, int off, int len) void
write
(int b) private void
void
writePlain
(byte[] b, int off, int len) void
writePlain
(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
-