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); } }
public static void SquareAddToExt(ulong[] x, ulong[] zz) { ulong[] array = Nat.Create64(13); SecT409Field.ImplSquare(x, array); SecT409Field.AddExt(zz, array, zz); }
public static void Square(ulong[] x, ulong[] z) { ulong[] array = Nat.Create64(13); SecT409Field.ImplSquare(x, array); SecT409Field.Reduce(array, z); }