Ignore:
Timestamp:
Jul 17, 2010, 8:06:04 PM (11 years ago)
Author:
schomburg
Message:

fixed KuehnSignatures so that they should work and minor fixes on other classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PKCS1/Library/Datablock.cs

    r1650 r1738  
    4242
    4343        protected byte[] m_Message = new byte[0];
    44         public string Message
     44        public byte[] Message
    4545        {
    4646            set
    4747            {
    48                 string tmpString = (string)value;
    49                 this.m_Message = Encoding.ASCII.GetBytes(tmpString);
     48                //string tmpString = (string)value;
     49                //this.m_Message = Encoding.ASCII.GetBytes(tmpString);
     50                this.m_Message = value;
    5051                OnRaiseParamChangedEvent(ParameterChangeType.Message);
    5152            }
    52             get { return Encoding.ASCII.GetString(this.m_Message); }
     53            //get { return Encoding.ASCII.GetString(this.m_Message); }
     54            get { return this.m_Message; }
    5355        }
    5456
     
    7375        public string GetHashDigestToHexString()
    7476        {
    75             return Encoding.ASCII.GetString(Hex.Encode(Hashfunction.generateHashDigest(this.Message, this.HashFunctionIdent)));
     77            byte[] bMessage = this.Message;
     78            HashFunctionIdent hashIdent = this.HashFunctionIdent;
     79            return Encoding.ASCII.GetString(Hex.Encode(Hashfunction.generateHashDigest(ref bMessage, ref hashIdent)));
    7680        }
    7781       
Note: See TracChangeset for help on using the changeset viewer.