Method | Description | |
---|---|---|
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 |
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.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
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. |
return | void |
public GetTagLength ( byte header ) : int | ||
header | byte | The header. |
return | int |
public SymmetricAeadStream ( Func |
||
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 |
return | System |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | An array of bytes. This method copies |
offset | int | The zero-based byte offset in |
count | int | The number of bytes to be written to the current stream. |
return | void |