Home
last modified time | relevance | path

Searched refs:Nat192 (Results 1 – 8 of 8) sorted by relevance

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/raw/
DNat384.java8 Nat192.mul(x, y, zz); in mul()
9 Nat192.mul(x, 6, y, 6, zz, 12); in mul()
11 int c18 = Nat192.addToEachOther(zz, 6, zz, 12); in mul()
12 int c12 = c18 + Nat192.addTo(zz, 0, zz, 6, 0); in mul()
13 c18 += Nat192.addTo(zz, 18, zz, 12, c12); in mul()
15 int[] dx = Nat192.create(), dy = Nat192.create(); in mul()
16 boolean neg = Nat192.diff(x, 6, x, 0, dx, 0) != Nat192.diff(y, 6, y, 0, dy, 0); in mul()
18 int[] tt = Nat192.createExt(); in mul()
19 Nat192.mul(dx, dy, tt); in mul()
27 Nat192.square(x, zz); in square()
[all …]
DNat192.java7 public abstract class Nat192 class
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/custom/sec/
DSecP192K1Field.java6 import org.bouncycastle.math.raw.Nat192;
22 int c = Nat192.add(x, y, z); in add()
23 if (c != 0 || (z[5] == P5 && Nat192.gte(z, P))) in add()
44 if (c != 0 || (z[5] == P5 && Nat192.gte(z, P))) in addOne()
52 int[] z = Nat192.fromBigInteger(x); in fromBigInteger()
53 if (z[5] == P5 && Nat192.gte(z, P)) in fromBigInteger()
55 Nat192.subFrom(P, z); in fromBigInteger()
68 int c = Nat192.add(x, P, z); in half()
75 int[] tt = Nat192.createExt(); in multiply()
76 Nat192.mul(x, y, tt); in multiply()
[all …]
DSecP192R1FieldElement.java7 import org.bouncycastle.math.raw.Nat192;
28 this.x = Nat192.create(); in SecP192R1FieldElement()
38 return Nat192.isZero(x); in isZero()
43 return Nat192.isOne(x); in isOne()
48 return Nat192.getBit(x, 0) == 1; in testBitZero()
53 return Nat192.toBigInteger(x); in toBigInteger()
68 int[] z = Nat192.create(); in add()
75 int[] z = Nat192.create(); in addOne()
82 int[] z = Nat192.create(); in subtract()
89 int[] z = Nat192.create(); in multiply()
[all …]
DSecP192K1FieldElement.java7 import org.bouncycastle.math.raw.Nat192;
28 this.x = Nat192.create(); in SecP192K1FieldElement()
38 return Nat192.isZero(x); in isZero()
43 return Nat192.isOne(x); in isOne()
48 return Nat192.getBit(x, 0) == 1; in testBitZero()
53 return Nat192.toBigInteger(x); in toBigInteger()
68 int[] z = Nat192.create(); in add()
75 int[] z = Nat192.create(); in addOne()
82 int[] z = Nat192.create(); in subtract()
89 int[] z = Nat192.create(); in multiply()
[all …]
DSecP192R1Field.java6 import org.bouncycastle.math.raw.Nat192;
23 int c = Nat192.add(x, y, z); in add()
24 if (c != 0 || (z[5] == P5 && Nat192.gte(z, P))) in add()
45 if (c != 0 || (z[5] == P5 && Nat192.gte(z, P))) in addOne()
53 int[] z = Nat192.fromBigInteger(x); in fromBigInteger()
54 if (z[5] == P5 && Nat192.gte(z, P)) in fromBigInteger()
56 Nat192.subFrom(P, z); in fromBigInteger()
69 int c = Nat192.add(x, P, z); in half()
76 int[] tt = Nat192.createExt(); in multiply()
77 Nat192.mul(x, y, tt); in multiply()
[all …]
DSecP192K1Point.java7 import org.bouncycastle.math.raw.Nat192;
93 int[] tt1 = Nat192.createExt(); in add()
94 int[] t2 = Nat192.create(); in add()
95 int[] t3 = Nat192.create(); in add()
96 int[] t4 = Nat192.create(); in add()
136 int[] H = Nat192.create(); in add()
143 if (Nat192.isZero(H)) in add()
145 if (Nat192.isZero(R)) in add()
158 int[] G = Nat192.create(); in add()
165 Nat192.mul(S1, G, tt1); in add()
[all …]
DSecP192R1Point.java7 import org.bouncycastle.math.raw.Nat192;
92 int[] tt1 = Nat192.createExt(); in add()
93 int[] t2 = Nat192.create(); in add()
94 int[] t3 = Nat192.create(); in add()
95 int[] t4 = Nat192.create(); in add()
135 int[] H = Nat192.create(); in add()
142 if (Nat192.isZero(H)) in add()
144 if (Nat192.isZero(R)) in add()
157 int[] G = Nat192.create(); in add()
164 Nat192.mul(S1, G, tt1); in add()
[all …]