示例#1
0
        public void HandleClientKeyExchange(ClientKeyExchangeMessage message)
        {
            var rsaMessage = message as ClientKeyExchangeMessage.RSA;
            SecurityAssert.NotNull(rsaMessage);

            state.ComputeMasterSecret(rsaMessage.PreMasterSecret);
        }
示例#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);
        }
示例#3
0
 public void HandleClientKeyExchange(ClientKeyExchangeMessage message)
 {
     throw new NotImplementedException();
 }