com.trilead.ssh2.crypto.cipher

Class CipherInputStream


public class CipherInputStream
extends java.lang.Object

CipherInputStream.

Constructor Summary

CipherInputStream(BlockCipher tc, InputStream bi)

Method Summary

void
changeCipher(BlockCipher bc)
int
read()
int
read(byte[] dst)
int
read(byte[] dst, int off, int len)
int
readPlain(byte[] b, int off, int len)

Constructor Details

CipherInputStream

public CipherInputStream(BlockCipher tc,
                         InputStream bi)

Method Details

changeCipher

public void changeCipher(BlockCipher bc)

read

public int read()
            throws IOException

read

public int read(byte[] dst)
            throws IOException

read

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

readPlain

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