C# 클래스 Keyczar.Unofficial.SymmetricAeadStream

Wrapper for AEAD symmetric block ciphers using bouncy castle
상속: Keyczar.Crypto.Streams.FinishingStream
파일 보기 프로젝트 열기: jbtule/keyczar-dotnet

공개 메소드들

메소드 설명
Finish ( ) : void

Finishes this instance.

Flush ( ) : void

When overridden in a derived class, clears all buffers for this stream and causes any buffered data to be written to the underlying device.

GetTagLength ( byte header ) : int

Gets the length of the tag.

SymmetricAeadStream ( Func makeCipher, Stream outStream, byte nonce, int tagLength, Action initFunc, bool encrypt ) : System

Initializes a new instance of the SymmetricAeadStream class.

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

When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the T:System.IO.Stream and optionally releases the managed resources.

메소드 상세

Dispose() 보호된 메소드

Releases the unmanaged resources used by the T:System.IO.Stream and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
리턴 void

Finish() 공개 메소드

Finishes this instance.
public Finish ( ) : void
리턴 void

Flush() 공개 메소드

When overridden in a derived class, clears all buffers for this stream and causes any buffered data to be written to the underlying device.
An I/O error occurs.
public Flush ( ) : void
리턴 void

GetTagLength() 공개 메소드

Gets the length of the tag.
public GetTagLength ( byte header ) : int
header byte The header.
리턴 int

SymmetricAeadStream() 공개 메소드

Initializes a new instance of the SymmetricAeadStream class.
public SymmetricAeadStream ( Func makeCipher, Stream outStream, byte nonce, int tagLength, Action initFunc, bool encrypt ) : System
makeCipher Func The make cipher.
outStream Stream The out stream.
nonce byte The nonce.
tagLength int Length of the tag.
initFunc Action The init func.
encrypt bool if set to true [encrypt].
리턴 System

Write() 공개 메소드

When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
The sum of and is greater than the buffer length. /// is null. /// or is negative. An I/O error occurs. The stream does not support writing. Methods were called after the stream was closed.
public Write ( byte buffer, int offset, int count ) : void
buffer byte An array of bytes. This method copies bytes from to the current stream.
offset int The zero-based byte offset in at which to begin copying bytes to the current stream.
count int The number of bytes to be written to the current stream.
리턴 void