Home
last modified time | relevance | path

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

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/raw/
DNat512.java8 Nat256.mul(x, y, zz); in mul()
9 Nat256.mul(x, 8, y, 8, zz, 16); in mul()
11 int c24 = Nat256.addToEachOther(zz, 8, zz, 16); in mul()
12 int c16 = c24 + Nat256.addTo(zz, 0, zz, 8, 0); in mul()
13 c24 += Nat256.addTo(zz, 24, zz, 16, c16); in mul()
15 int[] dx = Nat256.create(), dy = Nat256.create(); in mul()
16 boolean neg = Nat256.diff(x, 8, x, 0, dx, 0) != Nat256.diff(y, 8, y, 0, dy, 0); in mul()
18 int[] tt = Nat256.createExt(); in mul()
19 Nat256.mul(dx, dy, tt); in mul()
27 Nat256.square(x, zz); in square()
[all …]
DNat256.java7 public abstract class Nat256 class
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/custom/sec/
DSecP256K1Field.java6 import org.bouncycastle.math.raw.Nat256;
24 int c = Nat256.add(x, y, z); in add()
25 if (c != 0 || (z[7] == P7 && Nat256.gte(z, P))) in add()
46 if (c != 0 || (z[7] == P7 && Nat256.gte(z, P))) in addOne()
54 int[] z = Nat256.fromBigInteger(x); in fromBigInteger()
55 if (z[7] == P7 && Nat256.gte(z, P)) in fromBigInteger()
57 Nat256.subFrom(P, z); in fromBigInteger()
70 int c = Nat256.add(x, P, z); in half()
77 int[] tt = Nat256.createExt(); in multiply()
78 Nat256.mul(x, y, tt); in multiply()
[all …]
DSecP256K1FieldElement.java7 import org.bouncycastle.math.raw.Nat256;
28 this.x = Nat256.create(); in SecP256K1FieldElement()
38 return Nat256.isZero(x); in isZero()
43 return Nat256.isOne(x); in isOne()
48 return Nat256.getBit(x, 0) == 1; in testBitZero()
53 return Nat256.toBigInteger(x); in toBigInteger()
68 int[] z = Nat256.create(); in add()
75 int[] z = Nat256.create(); in addOne()
82 int[] z = Nat256.create(); in subtract()
89 int[] z = Nat256.create(); in multiply()
[all …]
DSecP256R1FieldElement.java7 import org.bouncycastle.math.raw.Nat256;
28 this.x = Nat256.create(); in SecP256R1FieldElement()
38 return Nat256.isZero(x); in isZero()
43 return Nat256.isOne(x); in isOne()
48 return Nat256.getBit(x, 0) == 1; in testBitZero()
53 return Nat256.toBigInteger(x); in toBigInteger()
68 int[] z = Nat256.create(); in add()
75 int[] z = Nat256.create(); in addOne()
82 int[] z = Nat256.create(); in subtract()
89 int[] z = Nat256.create(); in multiply()
[all …]
DSecP256R1Field.java6 import org.bouncycastle.math.raw.Nat256;
23 int c = Nat256.add(x, y, z); in add()
24 if (c != 0 || (z[7] == P7 && Nat256.gte(z, P))) in add()
42 if (c != 0 || (z[7] == P7 && Nat256.gte(z, P))) in addOne()
50 int[] z = Nat256.fromBigInteger(x); in fromBigInteger()
51 if (z[7] == P7 && Nat256.gte(z, P)) in fromBigInteger()
53 Nat256.subFrom(P, z); in fromBigInteger()
66 int c = Nat256.add(x, P, z); in half()
73 int[] tt = Nat256.createExt(); in multiply()
74 Nat256.mul(x, y, tt); in multiply()
[all …]
DSecP256K1Point.java7 import org.bouncycastle.math.raw.Nat256;
93 int[] tt1 = Nat256.createExt(); in add()
94 int[] t2 = Nat256.create(); in add()
95 int[] t3 = Nat256.create(); in add()
96 int[] t4 = Nat256.create(); in add()
136 int[] H = Nat256.create(); in add()
143 if (Nat256.isZero(H)) in add()
145 if (Nat256.isZero(R)) in add()
158 int[] G = Nat256.create(); in add()
165 Nat256.mul(S1, G, tt1); in add()
[all …]
DSecP256R1Point.java7 import org.bouncycastle.math.raw.Nat256;
91 int[] tt1 = Nat256.createExt(); in add()
92 int[] t2 = Nat256.create(); in add()
93 int[] t3 = Nat256.create(); in add()
94 int[] t4 = Nat256.create(); in add()
134 int[] H = Nat256.create(); in add()
141 if (Nat256.isZero(H)) in add()
143 if (Nat256.isZero(R)) in add()
156 int[] G = Nat256.create(); in add()
163 Nat256.mul(S1, G, tt1); in add()
[all …]