Ejemplo n.º 1
0
        public void HandleClientKeyExchange(ClientKeyExchangeMessage message)
        {
            var rsaMessage = message as ClientKeyExchangeMessage.RSA;
            SecurityAssert.NotNull(rsaMessage);

            state.ComputeMasterSecret(rsaMessage.PreMasterSecret);
        }
Ejemplo n.º 2
0
        public void HandleClientKeyExchange(ClientKeyExchangeMessage message)
        {
            var dhMessage = message as ClientKeyExchangeMessage.DH;
            SecurityAssert.NotNull(dhMessage);

            var p = state.Params[ParamP];
            var x = state.Params[ParamX];

            var sharedSecret = ComputeSharedSecret(p, x, dhMessage.Yc);
            var preMasterSecret = sharedSecret.ToTlsBytes();

            state.ComputeMasterSecret(preMasterSecret);
        }
Ejemplo n.º 3
0
 public void HandleClientKeyExchange(ClientKeyExchangeMessage message)
 {
     throw new NotImplementedException();
 }