Exemplo n.º 1
0
 public static void SquareN(ulong[] x, int n, ulong[] z)
 {
     ulong[] array = Nat.Create64(13);
     SecT409Field.ImplSquare(x, array);
     SecT409Field.Reduce(array, z);
     while (--n > 0)
     {
         SecT409Field.ImplSquare(z, array);
         SecT409Field.Reduce(array, z);
     }
 }
Exemplo n.º 2
0
 public static void SquareAddToExt(ulong[] x, ulong[] zz)
 {
     ulong[] array = Nat.Create64(13);
     SecT409Field.ImplSquare(x, array);
     SecT409Field.AddExt(zz, array, zz);
 }
Exemplo n.º 3
0
 public static void Square(ulong[] x, ulong[] z)
 {
     ulong[] array = Nat.Create64(13);
     SecT409Field.ImplSquare(x, array);
     SecT409Field.Reduce(array, z);
 }