Changeset 621 for trunk/CrypPluginBase


Ignore:
Timestamp:
Oct 1, 2009, 4:20:57 PM (12 years ago)
Author:
kopal
Message:
  • some comments in BigInteger
  • RSA example modified (replaced primes by expressions)
File:
1 edited

Legend:

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

    r612 r621  
    33483348        }
    33493349       
     3350        /**
     3351         * Calculates the log bas of this BigInteger         
     3352         */
    33503353        public double log(double bas) {
    33513354            int b = this.bitCount() - 1;
     
    33603363        }
    33613364
     3365        /**         
     3366         * Calculates the power with exponent exp of this BigInteger
     3367         */
    33623368        public BigInteger pow(BigInteger exp)
    33633369        {
     
    33753381        #region IComparable Members
    33763382
     3383        /*
     3384         * Implements the CompareTo method of IComparable
     3385         */
    33773386        int IComparable.CompareTo(object obj)
    33783387        {
     
    33963405
    33973406        #endregion
     3407
     3408        #region internal stuff of expression parser
    33983409
    33993410        private struct TOKEN
     
    35463557        }
    35473558
     3559        #endregion
     3560
     3561        /*         
     3562         * Parses a math expression (example: (2+2)^(17-5) )
     3563         * and returns a BigInteger based on this expression
     3564         *
     3565         * throws an exception when expression is not valid or the Number gets too big
     3566         */
    35483567        public static BigInteger parseExpression(string expr) {
    35493568            Stack<TOKEN> stack = scan(expr);
Note: See TracChangeset for help on using the changeset viewer.