private void StartSession(IServerSession session)
        {
            var clientIv = _ivGenerator.GetNewIv();
            var serverIv = _ivGenerator.GetNewIv();

            var info   = new ConfiguredHandshakeInfo(_serverConfiguration, clientIv, serverIv);
            var crypto = EndpointCrypto.Server(_ivFactory, clientIv, serverIv);

            session.Start(crypto, info);
        }
Beispiel #2
0
        private void StartSession(IServerSession session)
        {
            var clientIv = this.ivGenerator.GetNewIv();
            var serverIv = this.ivGenerator.GetNewIv();

            var info = new ConfiguredHandshakeInfo(this.serverConfiguration, clientIv, serverIv);
            var crypto = EndpointCrypto.Server(this.ivFactory, clientIv, serverIv);
            session.Start(crypto, info);
        }