示例#1
0
 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);
     }
 }
示例#2
0
 public static void Multiply(uint[] x, uint[] y, uint[] z)
 {
     uint[] array = Nat.Create(33);
     SecP521R1Field.ImplMultiply(x, y, array);
     SecP521R1Field.Reduce(array, z);
 }
示例#3
0
 public static void Square(uint[] x, uint[] z)
 {
     uint[] array = Nat.Create(33);
     SecP521R1Field.ImplSquare(x, array);
     SecP521R1Field.Reduce(array, z);
 }