public static void add(int[] p, int[] x, int[] y, int[] z) { int len = p.length; int c = Nat.add(len, x, y, z); if (c != 0) { Nat.subFrom(len, p, z); } }
public static void subtractExt(int[] xx, int[] yy, int[] zz) { int c = Nat.sub(10, xx, yy, zz); if (c != 0) { Nat.subFrom(PExtInv.length, PExtInv, zz); } }
public static void add(int[] p, int[] x, int[] y, int[] z) { int len = p.length; int c = Nat.add(len, x, y, z); if (c != 0) { Nat.subFrom(len, p, z); } }
public static void addExt(int[] xx, int[] yy, int[] zz) { int c = Nat.add(16, xx, yy, zz); if (c != 0 || ((zz[15] >>> 1) >= PExt15s1 && Nat.gte(16, zz, PExt))) { Nat.subFrom(16, PExt, zz); } }
public static void multiplyAddToExt(int[] x, int[] y, int[] zz) { int c = Nat256.mulAddTo(x, y, zz); if (c != 0 || ((zz[15] >>> 1) >= PExt15s1 && Nat.gte(16, zz, PExt))) { Nat.subFrom(16, PExt, zz); } }
public static void subtractExt(int[] xx, int[] yy, int[] zz) { int c = Nat.sub(12, xx, yy, zz); if (c != 0) { if (Nat.subFrom(PExtInv.length, PExtInv, zz) != 0) { Nat.decAt(12, zz, PExtInv.length); } } }
public static void addExt(int[] xx, int[] yy, int[] zz) { int c = Nat.add(16, xx, yy, zz); if (c != 0 || ((zz[15] >>> 1) >= PExt15s1 && Nat.gte(16, zz, PExt))) { Nat.subFrom(16, PExt, zz); } }
public static void subtractExt(int[] xx, int[] yy, int[] zz) { int c = Nat.sub(14, xx, yy, zz); if (c != 0) { if (Nat.subFrom(PExtInv.length, PExtInv, zz) != 0) { Nat.decAt(14, zz, PExtInv.length); } } }
public static void subtractExt(int[] xx, int[] yy, int[] zz) { int c = Nat.sub(10, xx, yy, zz); if (c != 0) { if (Nat.subFrom(PExtInv.length, PExtInv, zz) != 0) { Nat.decAt(10, zz, PExtInv.length); } } }
public static void subtractExt(int[] xx, int[] yy, int[] zz) { int c = Nat.sub(12, xx, yy, zz); if (c != 0) { if (Nat.subFrom(PExtInv.length, PExtInv, zz) != 0) { Nat.decAt(12, zz, PExtInv.length); } } }
public static void subtractExt(int[] xx, int[] yy, int[] zz) { int c = Nat.sub(16, xx, yy, zz); if (c != 0) { if (Nat.subFrom(PExtInv.length, PExtInv, zz) != 0) { Nat.decAt(16, zz, PExtInv.length); } } }
public static void subtractExt(int[] xx, int[] yy, int[] zz) { int c = Nat.sub(14, xx, yy, zz); if (c != 0) { if (Nat.subFrom(PExtInv.length, PExtInv, zz) != 0) { Nat.decAt(14, zz, PExtInv.length); } } }
public static int[] fromBigInteger(BigInteger x) { int[] z = Nat.fromBigInteger(384, x); if (z[11] == P11 && Nat.gte(12, z, P)) { Nat.subFrom(12, P, z); } return z; }
public static void subtractExt(int[] xx, int[] yy, int[] zz) { int c = Nat.sub(12, xx, yy, zz); if (c != 0) { if (Nat.subFrom(PExtInv.length, PExtInv, zz) != 0) { Nat.decAt(12, zz, PExtInv.length); } } }
public static void subtractExt(int[] xx, int[] yy, int[] zz) { int c = Nat.sub(12, xx, yy, zz); if (c != 0) { if (Nat.subFrom(PExtInv.length, PExtInv, zz) != 0) { Nat.decAt(12, zz, PExtInv.length); } } }
public static void subtractExt(int[] xx, int[] yy, int[] zz) { int c = Nat.sub(24, xx, yy, zz); if (c != 0) { if (Nat.subFrom(PExtInv.length, PExtInv, zz) != 0) { Nat.decAt(24, zz, PExtInv.length); } } }
public static int[] fromBigInteger(BigInteger x) { int[] z = Nat.fromBigInteger(384, x); if (z[11] == P11 && Nat.gte(12, z, P)) { Nat.subFrom(12, P, z); } return z; }
public static void multiplyAddToExt(int[] x, int[] y, int[] zz) { int c = Nat256.mulAddTo(x, y, zz); if (c != 0 || ((zz[15] >>> 1) >= PExt15s1 && Nat.gte(16, zz, PExt))) { Nat.subFrom(16, PExt, zz); } }
public static void subtractExt(int[] xx, int[] yy, int[] zz) { int c = Nat.sub(24, xx, yy, zz); if (c != 0) { if (Nat.subFrom(PExtInv.length, PExtInv, zz) != 0) { Nat.decAt(24, zz, PExtInv.length); } } }
public static void subtractExt(int[] xx, int[] yy, int[] zz) { int c = Nat.sub(10, xx, yy, zz); if (c != 0) { if (Nat.subFrom(PExtInv.length, PExtInv, zz) != 0) { Nat.decAt(10, zz, PExtInv.length); } } }