Ignore:
Timestamp:
Aug 29, 2010, 10:09:47 PM (11 years ago)
Author:
schomburg
Message:

added english menus
changed GUI a bit
added additional input for bleichenbacher signatures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/PKCS1/WpfControls/Components/SigGenBleichenbControl.xaml.cs

    r1778 r1885  
    1313using System.Windows.Shapes;
    1414using PKCS1.Library;
     15using PKCS1.Resources.lang.Gui;
    1516
    1617namespace PKCS1.WpfControls.Components
     
    2223    {
    2324        private BleichenbacherSig m_BleichSignature = new BleichenbacherSig();
    24         //private int DataBlockPos = 0;
    2525
    2626        public SigGenBleichenbControl()
     
    4545            this.m_BleichSignature = (BleichenbacherSig) SignatureHandler.getInstance().getBleichenbSig();
    4646            this.m_BleichSignature.DataBlockStartPos = (int)this.cbPosDataBlock.SelectedValue;
     47            this.m_BleichSignature.ChangeSign = this.tbChangeSign.Text;
    4748
    4849            this.m_BleichSignature.GenerateSignature();
     
    7172        private void rtbResult_TextChanged(object sender, TextChangedEventArgs e)
    7273        {
    73             this.lblSignatureLength.Content = "(Länge: " + UserControlHelper.GetRtbTextLength(this.rtbResult) * 4 + " bit)";
     74            this.lblSignatureLength.Content = "(" + Common.length  +": " + UserControlHelper.GetRtbTextLength(this.rtbResult) * 4 + " " + Common.bit + ")";
    7475        }
    7576
    7677        private void tbResultEncrypted_TextChanged(object sender, TextChangedEventArgs e)
    7778        {
    78             this.lblEncryptedSignatureLength.Content = "(Länge: " + this.tbResultEncrypted.Text.Length * 4 + " bit)";
    79         }
    80 
    81         private void cbPosDataBlock_SelectionChanged(object sender, SelectionChangedEventArgs e)
    82         {
    83 
     79            this.lblEncryptedSignatureLength.Content = "(" + Common.length + ": " + this.tbResultEncrypted.Text.Length * 4 + " " + Common.bit + ")";
    8480        }
    8581    }
Note: See TracChangeset for help on using the changeset viewer.