private void bExecute_Click(object sender, RoutedEventArgs e) { this.m_RSASignature = (RsaSig)SignatureHandler.getInstance().getSignature(); this.m_RSASignature.GenerateSignature(); UserControlHelper.loadRtbColoredSig(this.rtbResult, this.m_RSASignature.GetSignatureDecToHexString()); this.tbResultEncrypted.Text = this.m_RSASignature.GetSignatureToHexString(); // nur temp //SignatureHandler.getInstance().setSignature(this.m_RSASignature); }
private void bExecute_Click(object sender, RoutedEventArgs e) { Cursor = Cursors.Wait; this.m_BleichSignature = (BleichenbacherSig)SignatureHandler.getInstance().getBleichenbSig(); this.m_BleichSignature.DataBlockStartPos = (int)this.cbPosDataBlock.SelectedValue; this.m_BleichSignature.ChangeSign = this.tbChangeSign.Text; this.m_BleichSignature.GenerateSignature(); UserControlHelper.loadRtbColoredSig(this.rtbResult, this.m_BleichSignature.GetSignatureDecToHexString()); this.tbResultEncrypted.Text = this.m_BleichSignature.GetSignatureToHexString(); SignatureHandler.getInstance().setBleichenBSig(this.m_BleichSignature); Cursor = Cursors.Arrow; }
private void bExecute_Click(object sender, RoutedEventArgs e) { Cursor = Cursors.Wait; if (this.Signature.GenerateSignature()) { UserControlHelper.loadRtbColoredSig(this.rtbResult, this.Signature.GetSignatureDecToHexString()); this.tbResultEncrypted.Text = this.Signature.GetSignatureToHexString(); SignatureHandler.getInstance().setKuehnSig(this.Signature); } else { this.tbError.Text = SigGenKuehnCtrl.genSigErrorMaxIter; } Cursor = Cursors.Arrow; }