public virtual byte[] GenerateCertificateSignature(byte[] md5andsha1) { try { return(clientSigner.CalculateRawSignature(context.SecureRandom, clientPrivateKey, md5andsha1)); } catch (CryptoException) { throw new TlsFatalAlert(AlertDescription.internal_error); } }
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); } }