C# Class Org.BouncyCastle.Crypto.IO.CipherStream

Inheritance: Stream
Show file Open project: nonorganic/dssnet Class Usage Examples

Public Methods

Method Description
CipherStream ( Stream stream, IBufferedCipher readCipher, IBufferedCipher writeCipher ) : System
Close ( ) : void
Flush ( ) : void
Read ( byte buffer, int offset, int count ) : int
ReadByte ( ) : int
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long length ) : void
Write ( byte buffer, int offset, int count ) : void
WriteByte ( byte b ) : void

Private Methods

Method Description
FillInBuf ( ) : bool
ReadAndProcessBlock ( ) : byte[]

Method Details

CipherStream() public method

public CipherStream ( Stream stream, IBufferedCipher readCipher, IBufferedCipher writeCipher ) : System
stream Stream
readCipher IBufferedCipher
writeCipher IBufferedCipher
return System

Close() public method

public Close ( ) : void
return void

Flush() public method

public Flush ( ) : void
return void

Read() public method

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

ReadByte() public method

public ReadByte ( ) : int
return int

Seek() public final method

public final Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public final method

public final SetLength ( long length ) : void
length long
return void

Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void

WriteByte() public method

public WriteByte ( byte b ) : void
b byte
return void