Ignore:
Timestamp:
Jul 19, 2010, 9:29:50 PM (11 years ago)
Author:
schomburg
Message:

Limitation on Kuehn Signature Generation editable by User
beta version of helpfile Gen_Kuehn_Sig_Tab.html

File:
1 edited

Legend:

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

    r1742 r1743  
    1111namespace PKCS1.Library
    1212{
    13     class KuehnSignature : Signature, IGuiLogMsg
     13    public class KuehnSignature : Signature, IGuiLogMsg
    1414    {
     15        private int m_Iterations = 250000;
     16        public int Iterations
     17        {
     18            get { return this.m_Iterations; }
     19            set { this.m_Iterations = (int)value; }
     20        }
     21
    1522        public KuehnSignature()
    1623        {
     
    5562            int iMsgLength = bMessage.Length;
    5663            bool isEqual = false;
    57             int limit = 250000;
    5864            int countLoops = 0;
    5965
     
    6369            byte[] resultArray = new byte[this.m_KeyLength/8];
    6470
    65             while (!isEqual && (countLoops < limit))
     71            while (!isEqual && (countLoops < this.m_Iterations))
    6672            {
    6773                hashDigest = Hashfunction.generateHashDigest(ref bMessage, ref hashFuncIdent); // Hashwert wird erzeugt
     
    99105                }
    100106            }
    101             if (countLoops != limit)
     107            if (countLoops != this.m_Iterations)
    102108            {
    103109                Datablock.getInstance().Message = bMessage;
Note: See TracChangeset for help on using the changeset viewer.