Table of Contents

Class MtCipherStream

Namespace
SharpPluginLoader.Core.IO
Assembly
SharpPluginLoader.Core.dll

Represents a cipher stream. Can be used to encrypt/decrypt data from a stream.

public class MtCipherStream : MtStream, IDisposable
Inheritance
MtCipherStream
Implements
Inherited Members

Constructors

MtCipherStream()

public MtCipherStream()

MtCipherStream(nint)

public MtCipherStream(nint instance)

Parameters

instance nint

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

~MtCipherStream()

protected ~MtCipherStream()

FromStream(MtStream, CipherStreamMode, string)

Creates a new cipher stream from the specified stream and key.

public MtCipherStream? FromStream(MtStream stream, CipherStreamMode mode, string key)

Parameters

stream MtStream

The stream to encrypt/decrypt.

mode CipherStreamMode

The mode to use.

key string

The key to use.

Returns

MtCipherStream

The cipher stream, or null if it could not be created.