Class EncryptedSession
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
deadlineDateTimeencryptStreamsboolisLegacyboolallowUnencryptedMessagesboolalgorithmISymmetricAlgorithm
Fields
Algorithm
public readonly ISymmetricAlgorithm Algorithm
Field Value
AllowUnencryptedMessages
public readonly bool AllowUnencryptedMessages
Field Value
Deadline
public readonly DateTime Deadline
Field Value
EncryptStreams
public readonly bool EncryptStreams
Field Value
IsLegacy
public readonly bool IsLegacy
Field Value
Methods
DecryptAsync(byte[], Stream?)
public Task<(byte[], Stream?)> DecryptAsync(byte[] header, Stream? trailer)
Parameters
Returns
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)