예제 #1
0
        public static void SquareN(uint[] x, int n, uint[] z)
        {
            Debug.Assert(n > 0);

            uint[] tt = Nat.Create(24);
            Nat384.Square(x, tt);
            Reduce(tt, z);

            while (--n > 0)
            {
                Nat384.Square(z, tt);
                Reduce(tt, z);
            }
        }
예제 #2
0
 public static void Square(uint[] x, uint[] z)
 {
     uint[] tt = Nat.Create(24);
     Nat384.Square(x, tt);
     Reduce(tt, z);
 }