Ejemplo n.º 1
0
 public virtual byte[] GenerateCertificateSignature(byte[] md5andsha1)
 {
     try
     {
         return(clientSigner.CalculateRawSignature(context.SecureRandom, clientPrivateKey, md5andsha1));
     }
     catch (CryptoException)
     {
         throw new TlsFatalAlert(AlertDescription.internal_error);
     }
 }
Ejemplo n.º 2
0
        public byte[] GenerateCertificateSignature(byte[] md5andsha1)
        {
            if (clientSigner == null)
            {
                return(null);
            }

            try
            {
                return(clientSigner.CalculateRawSignature(clientPrivateKey, md5andsha1));
            }
            catch (CryptoException)
            {
                handler.FailWithError(TlsProtocolHandler.AL_fatal, TlsProtocolHandler.AP_internal_error);
                return(null);
            }
        }