public static void SquareN(uint[] x, int n, uint[] z) { uint[] array = Nat.Create(33); SecP521R1Field.ImplSquare(x, array); SecP521R1Field.Reduce(array, z); while (--n > 0) { SecP521R1Field.ImplSquare(z, array); SecP521R1Field.Reduce(array, z); } }
public static void Multiply(uint[] x, uint[] y, uint[] z) { uint[] array = Nat.Create(33); SecP521R1Field.ImplMultiply(x, y, array); SecP521R1Field.Reduce(array, z); }
public static void Square(uint[] x, uint[] z) { uint[] array = Nat.Create(33); SecP521R1Field.ImplSquare(x, array); SecP521R1Field.Reduce(array, z); }