<PackageReference Include="BouncyCastle.Cryptography" Version="2.3.0" />

ServerHello

public sealed class ServerHello
public int CipherSuite { get; }

public IDictionary<int, byte[]> Extensions { get; }

public byte[] Random { get; }

public byte[] SessionID { get; }

public ProtocolVersion Version { get; }

public ServerHello(byte[] sessionID, int cipherSuite, IDictionary<int, byte[]> extensions)

public ServerHello(ProtocolVersion version, byte[] random, byte[] sessionID, int cipherSuite, IDictionary<int, byte[]> extensions)

public static ServerHello Parse(MemoryStream input)

Parse a ServerHello from a MemoryStream.

public void Encode(TlsContext context, Stream output)

Encode this ServerHello to a Stream.

public bool IsHelloRetryRequest()