Home
last modified time | relevance | path

Searched refs:Fq2Elem (Results 1 – 13 of 13) sorted by relevance

/external/epid-sdk/epid/member/tiny/math/
Dfq2.h25 typedef struct Fq2Elem Fq2Elem; typedef
35 void Fq2Cp(Fq2Elem* result, Fq2Elem const* in);
42 void Fq2Set(Fq2Elem* result, uint32_t in);
48 void Fq2Clear(Fq2Elem* result);
56 void Fq2Add(Fq2Elem* result, Fq2Elem const* left, Fq2Elem const* right);
64 void Fq2Exp(Fq2Elem* result, Fq2Elem const* base, VeryLargeInt const* exp);
72 void Fq2Sub(Fq2Elem* result, Fq2Elem const* left, Fq2Elem const* right);
80 void Fq2Mul(Fq2Elem* result, Fq2Elem const* left, Fq2Elem const* right);
87 void Fq2Inv(Fq2Elem* result, Fq2Elem const* in);
94 void Fq2Neg(Fq2Elem* result, Fq2Elem const* in);
[all …]
Dmathtypes.h52 typedef struct Fq2Elem { struct
55 } Fq2Elem; argument
65 Fq2Elem x; ///< x coordinate
66 Fq2Elem y; ///< y coordinate
71 Fq2Elem y0; ///< A coefficent in Fq2
72 Fq2Elem y1; ///< A coefficent in Fq2
73 Fq2Elem y2; ///< A coefficent in Fq2
91 Fq2Elem X; ///< x coordinate
92 Fq2Elem Y; ///< y coordinate
93 Fq2Elem Z; ///< z coordinate
[all …]
Dfq6.h24 typedef struct Fq2Elem Fq2Elem; typedef
78 void Fq6MulScalar(Fq6Elem* result, Fq6Elem const* in, Fq2Elem const* scalar);
/external/epid-sdk/epid/member/tiny/math/unittests/
Dfq2-test.cc36 Fq2Elem a = {fq, fq}; in TEST()
37 Fq2Elem result = {0}; in TEST()
47 Fq2Elem expected = {0}; in TEST()
51 Fq2Elem result = {fq, fq}; in TEST()
60 Fq2Elem expected = {0}; in TEST()
63 Fq2Elem result = {fq, fq}; in TEST()
72 Fq2Elem result = {0}; in TEST()
73 Fq2Elem left = {{0, 0, 0, 0, 0, 5, 0, 0}, {0, 0, 0, 0, 0, 0, 9, 0}}; in TEST()
74 Fq2Elem right = {{0, 0, 0, 0, 0, 20, 0, 0}, {0, 0, 0, 0, 0, 0, 30, 0}}; in TEST()
75 Fq2Elem expected = {{0, 0, 0, 0, 0, 25, 0, 0}, {0, 0, 0, 0, 0, 0, 39, 0}}; in TEST()
[all …]
Dcmp-testhelper.h26 typedef struct Fq2Elem Fq2Elem; typedef
45 bool operator==(Fq2Elem const& lhs, Fq2Elem const& rhs);
Dcmp-testhelper.cc45 bool operator==(Fq2Elem const& lhs, Fq2Elem const& rhs) { in operator ==()
Dfq6-test.cc265 Fq2Elem scalar = {{0x848cdb73, 0x6399829e, 0xcaa20cc0, 0x1b02bff6, 0x2b477bd2, in TEST()
/external/epid-sdk/epid/member/tiny/math/src/
Dfq2.c24 void Fq2Cp(Fq2Elem* result, Fq2Elem const* in) { in Fq2Cp()
29 void Fq2Set(Fq2Elem* result, uint32_t in) { in Fq2Set()
34 void Fq2Clear(Fq2Elem* result) { in Fq2Clear()
39 void Fq2Add(Fq2Elem* result, Fq2Elem const* left, Fq2Elem const* right) { in Fq2Add()
44 void Fq2Exp(Fq2Elem* result, Fq2Elem const* base, VeryLargeInt const* exp) { in Fq2Exp()
46 Fq2Elem tmp; in Fq2Exp()
47 Fq2Elem tmp2; in Fq2Exp()
48 Fq2Elem* temp = &tmp; in Fq2Exp()
49 Fq2Elem* temp2 = &tmp2; in Fq2Exp()
63 void Fq2Sub(Fq2Elem* result, Fq2Elem const* left, Fq2Elem const* right) { in Fq2Sub()
[all …]
Dfq6.c37 Fq2Elem tmpa; in Fq6Mul()
38 Fq2Elem tmpb; in Fq6Mul()
39 Fq2Elem tmpc; in Fq6Mul()
40 Fq2Elem tmpd; in Fq6Mul()
41 Fq2Elem tmpe; in Fq6Mul()
42 Fq2Elem* temp_a = &tmpa; in Fq6Mul()
43 Fq2Elem* temp_b = &tmpb; in Fq6Mul()
44 Fq2Elem* temp_c = &tmpc; in Fq6Mul()
45 Fq2Elem* temp_d = &tmpd; in Fq6Mul()
46 Fq2Elem* temp_e = &tmpe; in Fq6Mul()
[all …]
Dfq12.c34 static void Fq4Square(Fq2Elem* out0, Fq2Elem* out1, Fq2Elem const* in0, in Fq4Square()
35 Fq2Elem const* in1) { in Fq4Square()
36 Fq2Elem tmp; in Fq4Square()
37 Fq2Elem* temp = &tmp; in Fq4Square()
171 Fq2Elem const* a0 = &(in->z0).y0; in Fq12SqCyc()
172 Fq2Elem const* a1 = &(in->z1).y0; in Fq12SqCyc()
173 Fq2Elem const* a2 = &(in->z0).y1; in Fq12SqCyc()
174 Fq2Elem const* a3 = &(in->z1).y1; in Fq12SqCyc()
175 Fq2Elem const* a4 = &(in->z0).y2; in Fq12SqCyc()
176 Fq2Elem const* a5 = &(in->z1).y2; in Fq12SqCyc()
[all …]
Defq2.c57 Fq2Elem inverted_z; in EFq2ToAffine()
71 Fq2Elem a; in EFq2Dbl()
72 Fq2Elem b; in EFq2Dbl()
111 Fq2Elem A; in EFq2Add()
112 Fq2Elem B; in EFq2Add()
113 Fq2Elem C; in EFq2Add()
114 Fq2Elem D; in EFq2Add()
115 Fq2Elem W; in EFq2Add()
116 Fq2Elem V; in EFq2Add()
195 Fq2Elem t1; in EFq2Eq()
[all …]
Dpairing.c31 static const Fq2Elem epid_xi = {
147 static void pair_tangent(Fq12Elem* f, Fq2Elem* X, Fq2Elem* Y, Fq2Elem* Z, in pair_tangent()
148 Fq2Elem* Z2, EccPointFq const* P) { in pair_tangent()
193 static void pair_line(Fq12Elem* f, Fq2Elem* X, Fq2Elem* Y, Fq2Elem* Z, in pair_line()
194 Fq2Elem* Z2, EccPointFq const* P, EccPointFq2 const* Q) { in pair_line()
243 Fq2Elem X; in PairingCompute()
244 Fq2Elem Y; in PairingCompute()
245 Fq2Elem Z; in PairingCompute()
246 Fq2Elem Z2; in PairingCompute()
Dserialize.c117 static void* Fq2Serialize(Fq2ElemStr* dest, Fq2Elem const* src) { in Fq2Serialize()
123 static void const* Fq2Deserialize(Fq2Elem* dest, Fq2ElemStr const* src) { in Fq2Deserialize()