HttpServerBoxed 0.0.11 alpha
A simple http server for C# and .NET
Loading...
Searching...
No Matches
HSB.TLS.Messages Namespace Reference

Classes

class  ClientHello
 

Functions

class ServerHello (ClientHello clientHello)
 

Function Documentation

◆ ServerHello()

class HSB.TLS.Messages.ServerHello ( ClientHello  clientHello)

Definition at line 5 of file ServerHello.cs.

6{
7
8 private readonly ClientHello clientHello = clientHello;
9
10 private byte[] _random;
11 private readonly CipherSuite.Ciphers _cipher;
12 private byte[] _publicKey;
13
14 public void BuildResponse(){
15 //build the private/public key-pair
16 //generate 32bytes random data
17 _random = new byte[32];
18 RandomNumberGenerator.Fill(_random);
19 int random = BitConverter.ToInt32(_random);
20 int clientRandom = BitConverter.ToInt32(clientHello.clientRandom);
21
22
23
24
25 }
26}