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/Library/BleichenbacherSig.cs

    r1778 r1885  
    3737        }
    3838
     39        protected string m_changeSign = " ";
     40        public string ChangeSign
     41        {
     42            set
     43            {
     44                this.m_changeSign = (string)value;
     45            }
     46            get
     47            {
     48                return this.m_changeSign;
     49            }
     50        }
     51
    3952        public override bool GenerateSignature()
    4053        {
     
    6881                else
    6982                {
    70                     byte[] tmp = new byte[Datablock.getInstance().Message.Length+1];
     83                    byte[] extSign = Encoding.ASCII.GetBytes(ChangeSign);
     84                    byte[] tmp = new byte[Datablock.getInstance().Message.Length+extSign.Length];
    7185                    Array.Copy(Datablock.getInstance().Message,tmp,Datablock.getInstance().Message.Length);
    72                     Array.Copy(Encoding.ASCII.GetBytes(" "), 0, tmp, Datablock.getInstance().Message.Length, Encoding.ASCII.GetBytes(" ").Length);
     86                    Array.Copy(extSign, 0, tmp, Datablock.getInstance().Message.Length,extSign.Length);
    7387                    Datablock.getInstance().Message = tmp;
    7488                }
Note: See TracChangeset for help on using the changeset viewer.