Changeset 1155 for trunk/CrypPluginBase


Ignore:
Timestamp:
Feb 19, 2010, 2:13:46 AM (12 years ago)
Author:
Arno Wacker
Message:

P2P Bruteforce key searching

  • Fixed serialization bug (JobId > 255)
  • Removed special case for JobId == 0 due to BigInt-bug; BigInt bug fixed, see bellow
  • Cleanup and renaming of the P2P-samples for Worker and Manager

BigInt:

  • getBytes() now returns also a single zeroed byte if value of BigInt is zero
  • added a warning to BigInt.dataLength - in some cases the values returned are wrong ==> yet another bug

AnotherEditor:

  • Invoke -> BeginInvoke for Plugin-Icon-changes and Quickwatch-updates
  • New binaries (CrypWin/AnotherEditor)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPluginBase/Miscellaneous/BigInteger.cs

    r740 r1155  
    171171
    172172        private uint[] data = null;             // stores bytes from the Big Integer
    173         public int dataLength;                 // number of actual chars used
     173       
     174        /// <summary>
     175        /// This returns the number of the actual chars used
     176        /// WARNIG: this sees bugg, e.g. a vlue of 256 lead to dataLength = 1, which should be 2
     177        /// This happens if 256 is created with the ++ operator/ other cases not checked)
     178        /// </summary>
     179        public int dataLength;
    174180
    175181
     
    26822688
    26832689            int numBytes = numBits >> 3;
    2684             if ((numBits & 0x7) != 0)
     2690            if ((numBits == 0) || ((numBits & 0x7) != 0)) // if numbits == 0, we still need a single byte to represent zero!
    26852691                numBytes++;
    26862692
Note: See TracChangeset for help on using the changeset viewer.