public class

CipherInputStream

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

Class Overview

CipherInputStream.

Summary

Fields
final int BUFF_SIZE
InputStream bi
int blockSize
byte[] buffer
BlockCipher currentCipher
byte[] enc
byte[] input_buffer
int input_buffer_pos
int input_buffer_size
int pos
Public Constructors
CipherInputStream(BlockCipher tc, InputStream bi)
Public Methods
void changeCipher(BlockCipher bc)
int read(byte[] dst)
int read()
int read(byte[] dst, int off, int len)
int readPlain(byte[] b, int off, int len)
[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[] input_buffer

int input_buffer_pos

int input_buffer_size

int pos

Public Constructors

public CipherInputStream (BlockCipher tc, InputStream bi)

Parameters
tc
bi

Public Methods

public void changeCipher (BlockCipher bc)

Parameters
bc

public int read (byte[] dst)

Parameters
dst
Throws
IOException

public int read ()

Throws
IOException

public int read (byte[] dst, int off, int len)

Parameters
dst
off
len
Throws
IOException

public int readPlain (byte[] b, int off, int len)

Parameters
b
off
len
Throws
IOException