Class CipherStream
- Namespace
- Enterprises.Org.BouncyCastle.Crypto.IO
- Assembly
- Enterprises.BouncyCastle.Crypto.dll
public class CipherStream : Stream, IDisposable, IAsyncDisposable
- Inheritance
-
CipherStream
- Implements
-
- Inherited Members
-
Constructors
CipherStream(Stream, IBufferedCipher, IBufferedCipher)
public CipherStream(Stream stream, IBufferedCipher readCipher, IBufferedCipher writeCipher)
Parameters
stream
Stream
readCipher
IBufferedCipher
writeCipher
IBufferedCipher
Properties
CanRead
public override bool CanRead { get; }
Property Value
- bool
CanSeek
public override bool CanSeek { get; }
Property Value
- bool
CanWrite
public override bool CanWrite { get; }
Property Value
- bool
Length
public override sealed long Length { get; }
Property Value
- long
Position
public override sealed long Position { get; set; }
Property Value
- long
ReadCipher
public IBufferedCipher ReadCipher { get; }
Property Value
- IBufferedCipher
WriteCipher
public IBufferedCipher WriteCipher { get; }
Property Value
- IBufferedCipher
Methods
Close()
public override void Close()
Flush()
public override void Flush()
Read(byte[], int, int)
public override int Read(byte[] buffer, int offset, int count)
Parameters
buffer
byte[]
offset
int
count
int
Returns
- int
ReadByte()
public override int ReadByte()
Returns
- int
Seek(long, SeekOrigin)
public override sealed long Seek(long offset, SeekOrigin origin)
Parameters
offset
long
origin
SeekOrigin
Returns
- long
SetLength(long)
public override sealed void SetLength(long length)
Parameters
length
long
Write(byte[], int, int)
public override void Write(byte[] buffer, int offset, int count)
Parameters
buffer
byte[]
offset
int
count
int
WriteByte(byte)
public override void WriteByte(byte b)
Parameters
b
byte