Home
last modified time | relevance | path

Searched refs:PInv33 (Results 1 – 3 of 3) sorted by relevance

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/custom/sec/
DSecP224K1Field.java19 private static final int PInv33 = 0x1A93; field in SecP224K1Field
26 Nat.add33To(7, PInv33, z); in add()
47 Nat.add33To(7, PInv33, z); in addOne()
56 Nat.add33To(7, PInv33, z); in fromBigInteger()
107 long cc = Nat224.mul33Add(PInv33, xx, 7, xx, 0, z, 0); in reduce()
108 int c = Nat224.mul33DWordAdd(PInv33, cc, z, 0); in reduce()
114 Nat.add33To(7, PInv33, z); in reduce()
120 if ((x != 0 && Nat224.mul33WordAdd(PInv33, x, z, 0) != 0) in reduce32()
123 Nat.add33To(7, PInv33, z); in reduce32()
154 Nat.sub33From(7, PInv33, z); in subtract()
[all …]
DSecP256K1Field.java20 private static final int PInv33 = 0x3D1; field in SecP256K1Field
27 Nat.add33To(8, PInv33, z); in add()
48 Nat.add33To(8, PInv33, z); in addOne()
108 long cc = Nat256.mul33Add(PInv33, xx, 8, xx, 0, z, 0); in reduce()
109 int c = Nat256.mul33DWordAdd(PInv33, cc, z, 0); in reduce()
115 Nat.add33To(8, PInv33, z); in reduce()
121 if ((x != 0 && Nat256.mul33WordAdd(PInv33, x, z, 0) != 0) in reduce32()
124 Nat.add33To(8, PInv33, z); in reduce32()
155 Nat.sub33From(8, PInv33, z); in subtract()
176 Nat.add33To(8, PInv33, z); in twice()
DSecP192K1Field.java18 private static final int PInv33 = 0x11C9; field in SecP192K1Field
25 Nat.add33To(6, PInv33, z); in add()
46 Nat.add33To(6, PInv33, z); in addOne()
106 long cc = Nat192.mul33Add(PInv33, xx, 6, xx, 0, z, 0); in reduce()
107 int c = Nat192.mul33DWordAdd(PInv33, cc, z, 0); in reduce()
113 Nat.add33To(6, PInv33, z); in reduce()
119 if ((x != 0 && Nat192.mul33WordAdd(PInv33, x, z, 0) != 0) in reduce32()
122 Nat.add33To(6, PInv33, z); in reduce32()
153 Nat.sub33From(6, PInv33, z); in subtract()
174 Nat.add33To(6, PInv33, z); in twice()