-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathExchangeContext.cs
More file actions
20 lines (19 loc) · 872 Bytes
/
ExchangeContext.cs
File metadata and controls
20 lines (19 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using KSSHServer.Ciphers;
using KSSHServer.Compressions;
using KSSHServer.HostKeyAlgorithms;
using KSSHServer.KexAlgorithms;
using KSSHServer.MACAlgorithms;
namespace KSSHServer
{
public class ExchangeContext
{
public IKexAlgorithm KexAlgorithm { get; set; } = null;
public IHostKeyAlgorithm HostKeyAlgorithm { get; set; } = null;
public ICipher CipherClientToServer { get; set; } = new NoCipher();
public ICipher CipherServerToClient { get; set; } = new NoCipher();
public IMACAlgorithm MACAlgorithmClientToServer { get; set; } = null;
public IMACAlgorithm MACAlgorithmServerToClient { get; set; } = null;
public ICompression CompressionClientToServer { get; set; } = new NoCompression();
public ICompression CompressionServerToClient { get; set; } = new NoCompression();
}
}