Пример #1
0
        /**
         * Takes input BIGs a, b, m and returns a+b modulo m
         *
         * @param a the first BIG to add
         * @param b the second BIG to add
         * @param m the modulus
         * @return Returns a+b (mod m)
         */
        public static BIG ModAdd(this BIG a, BIG b, BIG m)
        {
            BIG c = a.Plus(b);

            c.Mod(m);
            return(c);
        }