private static void RS(int[] d, int[] e, int[] f, int[] t) { SecP224R1Field.multiply(e, d, e); SecP224R1Field.twice(e, e); SecP224R1Field.square(d, t); SecP224R1Field.add(f, t, d); SecP224R1Field.multiply(f, t, f); int c = Nat.shiftUpBits(7, f, 2, 0); SecP224R1Field.reduce32(c, f); }
private static void RS(int[] d, int[] e, int[] f, int[] t) { SecP224R1Field.multiply(e, d, e); SecP224R1Field.twice(e, e); SecP224R1Field.square(d, t); SecP224R1Field.add(f, t, d); SecP224R1Field.multiply(f, t, f); int c = Nat.shiftUpBits(7, f, 2, 0); SecP224R1Field.reduce32(c, f); }
c = Nat.shiftUpBits(6, S, 2, 0); SecP192K1Field.reduce32(c, S); c = Nat.shiftUpBits(6, T, 3, 0, t1); SecP192K1Field.reduce32(c, t1);
c = Nat.shiftUpBits(5, S, 2, 0); SecP160R2Field.reduce32(c, S); c = Nat.shiftUpBits(5, T, 3, 0, t1); SecP160R2Field.reduce32(c, t1);
c = Nat.shiftUpBits(8, S, 2, 0); SecP256K1Field.reduce32(c, S); c = Nat.shiftUpBits(8, T, 3, 0, t1); SecP256K1Field.reduce32(c, t1);
c = Nat.shiftUpBits(7, S, 2, 0); SecP224K1Field.reduce32(c, S); c = Nat.shiftUpBits(7, T, 3, 0, t1); SecP224K1Field.reduce32(c, t1);
c = Nat.shiftUpBits(6, S, 2, 0); SecP192K1Field.reduce32(c, S); c = Nat.shiftUpBits(6, T, 3, 0, t1); SecP192K1Field.reduce32(c, t1);
c = Nat.shiftUpBits(8, S, 2, 0); SecP256K1Field.reduce32(c, S); c = Nat.shiftUpBits(8, T, 3, 0, t1); SecP256K1Field.reduce32(c, t1);
c = Nat.shiftUpBits(7, S, 2, 0); SecP224K1Field.reduce32(c, S); c = Nat.shiftUpBits(7, T, 3, 0, t1); SecP224K1Field.reduce32(c, t1);
c = Nat.shiftUpBits(12, S, 2, 0); SecP384R1Field.reduce32(c, S); c = Nat.shiftUpBits(12, T, 3, 0, t1); SecP384R1Field.reduce32(c, t1);
c = Nat.shiftUpBits(8, S, 2, 0); SecP256R1Field.reduce32(c, S); c = Nat.shiftUpBits(8, T, 3, 0, t1); SecP256R1Field.reduce32(c, t1);
c = Nat.shiftUpBits(6, S, 2, 0); SecP192R1Field.reduce32(c, S); c = Nat.shiftUpBits(6, T, 3, 0, t1); SecP192R1Field.reduce32(c, t1);
c = Nat.shiftUpBits(5, S, 2, 0); SecP160R1Field.reduce32(c, S); c = Nat.shiftUpBits(5, T, 3, 0, t1); SecP160R1Field.reduce32(c, t1);
c = Nat.shiftUpBits(12, S, 2, 0); SecP384R1Field.reduce32(c, S); c = Nat.shiftUpBits(12, T, 3, 0, t1); SecP384R1Field.reduce32(c, t1);
Nat.shiftUpBits(17, S, 2, 0); SecP521R1Field.reduce23(S); Nat.shiftUpBits(17, T, 3, 0, t1); SecP521R1Field.reduce23(t1);
c = Nat.shiftUpBits(7, S, 2, 0); SecP224R1Field.reduce32(c, S); c = Nat.shiftUpBits(7, T, 3, 0, t1); SecP224R1Field.reduce32(c, t1);
c = Nat.shiftUpBits(7, S, 2, 0); SecP224R1Field.reduce32(c, S); c = Nat.shiftUpBits(7, T, 3, 0, t1); SecP224R1Field.reduce32(c, t1);
c = Nat.shiftUpBits(8, S, 2, 0); SecP256R1Field.reduce32(c, S); c = Nat.shiftUpBits(8, T, 3, 0, t1); SecP256R1Field.reduce32(c, t1);
c = Nat.shiftUpBits(6, S, 2, 0); SecP192R1Field.reduce32(c, S); c = Nat.shiftUpBits(6, T, 3, 0, t1); SecP192R1Field.reduce32(c, t1);
Nat.shiftUpBits(17, S, 2, 0); SecP521R1Field.reduce23(S); Nat.shiftUpBits(17, T, 3, 0, t1); SecP521R1Field.reduce23(t1);