Home
last modified time | relevance | path

Searched refs:FqElem (Results 1 – 17 of 17) sorted by relevance

/external/epid-sdk/epid/member/tiny/math/
Dfq.h27 typedef struct FqElem FqElem; typedef
37 int FqInField(FqElem const* in);
45 void FqAdd(FqElem* result, FqElem const* left, FqElem const* right);
53 void FqSub(FqElem* result, FqElem const* left, FqElem const* right);
61 void FqMul(FqElem* result, FqElem const* left, FqElem const* right);
69 void FqExp(FqElem* result, FqElem const* base, VeryLargeInt const* exp);
76 void FqCp(FqElem* result, FqElem const* in);
84 int FqIsZero(FqElem const* value);
91 void FqInv(FqElem* result, FqElem const* in);
100 void FqNeg(FqElem* result, FqElem const* in);
[all …]
Dmathtypes.h47 typedef struct FqElem { struct
49 } FqElem; argument
53 FqElem x0; ///< A coefficent in Fq
54 FqElem x1; ///< A coefficent in Fq
59 FqElem x; ///< x coordinate
60 FqElem y; ///< y coordinate
84 FqElem X; ///< x coordinate
85 FqElem Y; ///< y coordinate
86 FqElem Z; ///< z coordinate
Dserialize.h30 typedef struct FqElem FqElem; typedef
109 void* FqSerialize(FqElemStr* dest, FqElem const* src);
117 void const* FqDeserialize(FqElem* dest, FqElemStr const* src);
Defq.h29 typedef struct FqElem FqElem; typedef
135 void EFqSet(EccPointJacobiFq* result, FqElem const* x, FqElem const* y);
Dfq2.h26 typedef struct FqElem FqElem; typedef
116 void Fq2MulScalar(Fq2Elem* result, Fq2Elem const* left, FqElem const* right);
/external/epid-sdk/epid/member/tiny/math/unittests/
Dfq-test.cc35 FqElem zero = {0}; in TEST()
36 FqElem q_minus_one = {{0xAED33012, 0xD3292DDB, 0x12980A82, 0x0CDC65FB, in TEST()
43 FqElem q = {{0xAED33013, 0xD3292DDB, 0x12980A82, 0x0CDC65FB, 0xEE71A49F, in TEST()
52 FqElem result = {0}, expected = {0}, left = {0}, right = {0}; in TEST()
59 FqElem q_minus_one = {0xAED33012, 0xD3292DDB, 0x12980A82, 0x0CDC65FB, in TEST()
71 FqElem result = {0}, expected = {0}, left = {0}, right = {0}; in TEST()
80 FqElem q_minus_one = {0xAED33012, 0xD3292DDB, 0x12980A82, 0x0CDC65FB, in TEST()
90 FqElem left = {0x22cfd6a2, 0x23e82f1e, 0xd50e1450, 0xe853e88c, in TEST()
92 FqElem right = {0x848cdb73, 0x6399829e, 0xcaa20cc0, 0x1b02bff6, in TEST()
94 FqElem expected = {0x28f2f1dd, 0x2cb2b611, 0xa24767b3, 0x4e880c0e, in TEST()
[all …]
Dfq2-test.cc34 FqElem fq = {{0xAED33012, 0xD3292DDB, 0x12980A82, 0x0CDC65FB, 0xEE71A49F, in TEST()
49 FqElem fq = {{0xAED33012, 0xD3292DDB, 0x12980A82, 0x0CDC65FB, 0xEE71A49F, in TEST()
61 FqElem fq = {{0xAED33012, 0xD3292DDB, 0x12980A82, 0x0CDC65FB, 0xEE71A49F, in TEST()
179 FqElem const q = {{0xAED33013, 0xD3292DDB, 0x12980A82, 0x0CDC65FB, 0xEE71A49F, in TEST()
252 FqElem scalar = {0x848cdb73, 0x6399829e, 0xcaa20cc0, 0x1b02bff6, in TEST()
266 FqElem scalar = {0x848cdb73, 0x6399829e, 0xcaa20cc0, 0x1b02bff6, in TEST()
300 FqElem fq_a = {{0xAED33012, 0xD3292DDB, 0x12980A82, 0x0CDC65FB, 0xEE71A49F, in TEST()
302 FqElem fq_b = {{0xAED33012, 0xD3292DDB, 0x12980A82, 0x0CDC65FB, 0xEE71A49F, in TEST()
310 FqElem fq_a = {{0xAED33012, 0xD3292DDB, 0x12980A82, 0x0CDC65FB, 0xEE71A49F, in TEST()
312 FqElem fq_b = {{0xAED33012, 0xD3292DDB, 0x12980A82, 0x0CDC65FB, 0xEE71A49F, in TEST()
Dfq6-test.cc236 FqElem fq = {{0xAED33012, 0xD3292DDB, 0x12980A82, 0x0CDC65FB, 0xEE71A49F, in TEST()
312 FqElem fq_a = {{0xAED33012, 0xD3292DDB, 0x12980A82, 0x0CDC65FB, 0xEE71A49F, in TEST()
314 FqElem fq_b = {{0xAED33012, 0xD3292DDB, 0x12980A82, 0x0CDC65FB, 0xEE71A49F, in TEST()
322 FqElem fq_a = {{0xAED33012, 0xD3292DDB, 0x12980A82, 0x0CDC65FB, 0xEE71A49F, in TEST()
324 FqElem fq_b = {{0xAED33012, 0xD3292DDB, 0x12980A82, 0x0CDC65FB, 0xEE71A49F, in TEST()
383 FqElem fq = {{0xAED33012, 0xD3292DDB, 0x12980A82, 0x0CDC65FB, 0xEE71A49F, in TEST()
445 FqElem fq = {{0xAED33012, 0xD3292DDB, 0x12980A82, 0x0CDC65FB, 0xEE71A49F, in TEST()
Dserialize-test.cc116 const FqElem fqelm = {0x01020304, 0x05060708, 0x090A0B0C, 0x0D0E0F10, in TEST()
135 FqElem fqelm = {0}; in TEST()
136 const FqElem expected_fqelm = {0x01020304, 0x05060708, 0x090A0B0C, in TEST()
356 const FqElem fqelm = {0x01020304, 0x05060708, 0x090A0B0C, 0x0D0E0F10, in TEST()
380 const FqElem fqelm = {0x01020304, 0x05060708, 0x090A0B0C, 0x0D0E0F10, in TEST()
391 const FqElem fqelm = {0x01020304, 0x05060708, 0x090A0B0C, 0x0D0E0F10, in TEST()
416 const FqElem fqelm = {0x01020304, 0x05060708, 0x090A0B0C, 0x0D0E0F10, in TEST()
Dcmp-testhelper.h25 typedef struct FqElem FqElem; typedef
42 bool operator==(FqElem const& lhs, FqElem const& rhs);
Dcmp-testhelper.cc41 bool operator==(FqElem const& lhs, FqElem const& rhs) { in operator ==()
Defq-test.cc328 FqElem x = {1}; in TEST()
329 FqElem y = {2}; in TEST()
/external/epid-sdk/epid/member/tiny/math/src/
Dfq.c37 int FqInField(FqElem const* in) { return (VliCmp(&in->limbs, &epid20_q) < 0); } in FqInField()
39 void FqAdd(FqElem* result, FqElem const* left, FqElem const* right) { in FqAdd()
43 void FqSub(FqElem* result, FqElem const* left, FqElem const* right) { in FqSub()
47 void FqMul(FqElem* result, FqElem const* left, FqElem const* right) { in FqMul()
51 void FqExp(FqElem* result, FqElem const* base, VeryLargeInt const* exp) { in FqExp()
55 void FqCp(FqElem* result, FqElem const* in) { in FqCp()
59 int FqIsZero(FqElem const* value) { return VliIsZero(&value->limbs); } in FqIsZero()
61 void FqInv(FqElem* result, FqElem const* in) { in FqInv()
65 void FqNeg(FqElem* result, FqElem const* in) { in FqNeg()
70 void FqSquare(FqElem* result, FqElem const* in) { in FqSquare()
[all …]
Defq.c27 static int EFqMakePoint(EccPointFq* output, FqElem* in) { in EFqMakePoint()
28 FqElem fq_sqrt = {0}; in EFqMakePoint()
29 FqElem fq_tmp = {0}; in EFqMakePoint()
133 FqElem fq_a; in EFqDbl()
134 FqElem fq_b; in EFqDbl()
157 FqElem fq0; in EFqAdd()
158 FqElem fq1; in EFqAdd()
159 FqElem fq2; in EFqAdd()
160 FqElem fq3; in EFqAdd()
161 FqElem fq4; in EFqAdd()
[all …]
Dfq2.c69 FqElem A; in Fq2Mul()
70 FqElem B; in Fq2Mul()
71 FqElem* a = &A; in Fq2Mul()
72 FqElem* b = &B; in Fq2Mul()
86 FqElem tmp; in Fq2Inv()
87 FqElem tmp2; in Fq2Inv()
88 FqElem* temp = &tmp; in Fq2Inv()
89 FqElem* temp2 = &tmp2; in Fq2Inv()
110 FqElem tmpa; in Fq2Square()
111 FqElem* temp_a = &tmpa; in Fq2Square()
[all …]
Dserialize.c96 void* FqSerialize(FqElemStr* dest, FqElem const* src) { in FqSerialize()
106 void const* FqDeserialize(FqElem* dest, FqElemStr const* src) { in FqDeserialize()
Defq2.c226 FqElem three; in EFq2OnCurve()