Changeset 1119


Ignore:
Timestamp:
Feb 1, 2010, 6:29:35 PM (12 years ago)
Author:
Sven Rech
Message:

Count for KeyPatternPool

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/KeySearcher/KeyPatternPool.cs

    r1118 r1119  
    176176        }
    177177
     178        public BigInteger Count()
     179        {
     180            BigInteger res = 1;
     181            for (int k = 0; k < pattern.wildcardList.Count; k++)
     182            {
     183                Wildcard wc = ((Wildcard)pattern.wildcardList[k]);
     184                res *= splittingQuotient[k];
     185            }
     186            return res;
     187        }
     188
    178189        public KeyPatternPool(KeyPattern pattern, BigInteger partsize)
    179190        {
Note: See TracChangeset for help on using the changeset viewer.