com.trilead.ssh2.crypto.cipher

Class CipherOutputStream


public class CipherOutputStream
extends java.lang.Object

CipherOutputStream.

Constructor Summary

CipherOutputStream(BlockCipher tc, OutputStream bo)

Method Summary

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)

Constructor Details

CipherOutputStream

public CipherOutputStream(BlockCipher tc,
                          OutputStream bo)

Method Details

changeCipher

public void changeCipher(BlockCipher bc)

flush

public void flush()
            throws IOException

write

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

write

public void write(int b)
            throws IOException

writePlain

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

writePlain

public void writePlain(int b)
            throws IOException