private BouncyCastleTlsTestResult ProcessKeyExchange(TlsRsaKeyExchange keyExchange)
        {
            TlsVersion              version      = Context.ServerVersion.ToTlsVersion();
            CipherSuite             cipherSuite  = mSecurityParameters.CipherSuite.ToCipherSuite();
            List <X509Certificate2> certificates = mPeerCertificate.ToCertificateList();

            base.CleanupHandshake();
            return(new BouncyCastleTlsTestResult(version, cipherSuite, null, null, _tlsError, _errorMessage, null, certificates));
        }
        private BouncyCastleTlsTestResult ProcessKeyExchange(TestTlsDheKeyExchange keyExchange)
        {
            CurveGroup group = keyExchange.DhParameters.ToGroup();

            TlsVersion              version                = Context.ServerVersion.ToTlsVersion();
            CipherSuite             cipherSuite            = mSecurityParameters.CipherSuite.ToCipherSuite();
            SignatureHashAlgorithm  signatureHashAlgorithm = keyExchange.EcSignatureAndHashAlgorithm.ToSignatureAlgorithm();
            List <X509Certificate2> certificates           = mPeerCertificate.ToCertificateList();

            base.CleanupHandshake();
            return(new BouncyCastleTlsTestResult(version, cipherSuite, group, signatureHashAlgorithm, _tlsError, _errorMessage, null, certificates));
        }
        private BouncyCastleTlsTestResult ProcessKeyExchange(TestTlsEcDhKeyExchange keyExchange)
        {
            string curveName = keyExchange.EcPublicKeyParameters.Parameters.Curve.GetType().Name.ToLower();

            CurveGroup              curve        = curveName.ToCurve();
            TlsVersion              version      = Context.ServerVersion.ToTlsVersion();
            CipherSuite             cipherSuite  = mSecurityParameters.CipherSuite.ToCipherSuite();
            List <X509Certificate2> certificates = mPeerCertificate.ToCertificateList();

            base.CleanupHandshake();
            return(new BouncyCastleTlsTestResult(version, cipherSuite, curve, null, _tlsError, _errorMessage, null, certificates));
        }