Пример #1
0
        public static void SquareN(uint[] x, int n, uint[] z)
        {
            Debug.Assert(n > 0);

            uint[] tt = Nat192.CreateExt();
            Nat192.Square(x, tt);
            Reduce(tt, z);

            while (--n > 0)
            {
                Nat192.Square(z, tt);
                Reduce(tt, z);
            }
        }
Пример #2
0
 public static void Square(uint[] x, uint[] z)
 {
     uint[] tt = Nat192.CreateExt();
     Nat192.Square(x, tt);
     Reduce(tt, z);
 }