Exemple #1
0
 public static void SquareN(uint[] x, int n, uint[] z)
 {
     uint[] array = Nat128.CreateExt();
     Nat128.Square(x, array);
     Reduce(array, z);
     while (--n > 0)
     {
         Nat128.Square(z, array);
         Reduce(array, z);
     }
 }
Exemple #2
0
 public static void SquareN(uint[] x, int n, uint[] z)
 {
     uint[] zz = Nat128.CreateExt();
     Nat128.Square(x, zz);
     Reduce(zz, z);
     while (--n > 0)
     {
         Nat128.Square(z, zz);
         Reduce(zz, z);
     }
 }
        public static void SquareN(uint[] x, int n, uint[] z)
        {
            Debug.Assert(n > 0);

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

            while (--n > 0)
            {
                Nat128.Square(z, tt);
                Reduce(tt, z);
            }
        }
 public static void Square(uint[] x, uint[] z)
 {
     uint[] tt = Nat128.CreateExt();
     Nat128.Square(x, tt);
     Reduce(tt, z);
 }
Exemple #5
0
 public static void Square(uint[] x, uint[] z)
 {
     uint[] array = Nat128.CreateExt();
     Nat128.Square(x, array);
     Reduce(array, z);
 }
Exemple #6
0
 public static void Square(uint[] x, uint[] z)
 {
     uint[] zz = Nat128.CreateExt();
     Nat128.Square(x, zz);
     Reduce(zz, z);
 }