public class

CipherOutputStream

extends Object
java.lang.Object
   ↳ com.trilead.ssh2.crypto.cipher.CipherOutputStream

Class Overview

CipherOutputStream.

Summary

Fields
final int BUFF_SIZE
int blockSize
OutputStream bo
byte[] buffer
BlockCipher currentCipher
byte[] enc
byte[] out_buffer
int out_buffer_pos
int pos
Public Constructors
CipherOutputStream(BlockCipher tc, OutputStream bo)
Public Methods
void changeCipher(BlockCipher bc)
void flush()
void write(byte[] src, int off, int len)
void write(int b)
void writePlain(byte[] b, int off, int len)
void writePlain(int b)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

final int BUFF_SIZE

Constant Value: 2048 (0x00000800)

int blockSize

byte[] buffer

BlockCipher currentCipher

byte[] enc

byte[] out_buffer

int out_buffer_pos

int pos

Public Constructors

public CipherOutputStream (BlockCipher tc, OutputStream bo)

Parameters
tc
bo

Public Methods

public void changeCipher (BlockCipher bc)

Parameters
bc

public void flush ()

Throws
IOException

public void write (byte[] src, int off, int len)

Parameters
src
off
len
Throws
IOException

public void write (int b)

Parameters
b
Throws
IOException

public void writePlain (byte[] b, int off, int len)

Parameters
b
off
len
Throws
IOException

public void writePlain (int b)

Parameters
b
Throws
IOException