Table of Contents

Class EncryptedSession

Namespace
The.RPC
Assembly
Instagile.dll

Manages an encrypted session for secure RPC communication, handling encryption and decryption of packets and streams.

public sealed class EncryptedSession : IDisposable
Inheritance
EncryptedSession
Implements
Inherited Members

Constructors

EncryptedSession(DateTime, bool, bool, bool, ISymmetricAlgorithm)

public EncryptedSession(DateTime deadline, bool encryptStreams, bool isLegacy, bool allowUnencryptedMessages, ISymmetricAlgorithm algorithm)

Parameters

deadline DateTime
encryptStreams bool
isLegacy bool
allowUnencryptedMessages bool
algorithm ISymmetricAlgorithm

Fields

Algorithm

public readonly ISymmetricAlgorithm Algorithm

Field Value

ISymmetricAlgorithm

AllowUnencryptedMessages

public readonly bool AllowUnencryptedMessages

Field Value

bool

Deadline

public readonly DateTime Deadline

Field Value

DateTime

EncryptStreams

public readonly bool EncryptStreams

Field Value

bool

IsLegacy

public readonly bool IsLegacy

Field Value

bool

Methods

DecryptAsync(byte[], Stream?)

public Task<(byte[], Stream?)> DecryptAsync(byte[] header, Stream? trailer)

Parameters

header byte[]
trailer Stream

Returns

Task<(byte[], Stream)>

Dispose()

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

public void Dispose()

EncryptAsync(byte[], Stream?)

public Task<(byte[], Stream?)> EncryptAsync(byte[] header, Stream? trailer)

Parameters

header byte[]
trailer Stream

Returns

Task<(byte[], Stream)>