Home
last modified time | relevance | path

Searched refs:VeryLargeInt (Results 1 – 22 of 22) sorted by relevance

/external/epid-sdk/epid/member/tiny/math/
Dvli.h25 typedef struct VeryLargeInt VeryLargeInt; typedef
37 uint32_t VliAdd(VeryLargeInt* result, VeryLargeInt const* left,
38 VeryLargeInt const* right);
46 void VliMul(VeryLargeIntProduct* result, VeryLargeInt const* left,
47 VeryLargeInt const* right);
55 void VliRShift(VeryLargeInt* result, VeryLargeInt const* in, uint32_t shift);
64 uint32_t VliSub(VeryLargeInt* result, VeryLargeInt const* left,
65 VeryLargeInt const* right);
72 void VliSet(VeryLargeInt* result, VeryLargeInt const* in);
78 void VliClear(VeryLargeInt* result);
[all …]
Dfq12.h26 typedef struct VeryLargeInt VeryLargeInt; typedef
87 void Fq12Exp(Fq12Elem* result, Fq12Elem const* base, VeryLargeInt const* exp);
102 VeryLargeInt const* exp0, Fq12Elem const* base1,
103 VeryLargeInt const* exp1, Fq12Elem const* base2,
104 VeryLargeInt const* exp2, Fq12Elem const* base3,
105 VeryLargeInt const* exp3);
131 void Fq12ExpCyc(Fq12Elem* result, Fq12Elem const* in, VeryLargeInt const* t);
Dmathtypes.h32 typedef struct VeryLargeInt { struct
34 } VeryLargeInt; typedef
43 VeryLargeInt limbs; ///< An integer in [0, p-1]
48 VeryLargeInt limbs; ///< An integer in [0, q-1]
Dserialize.h27 typedef struct VeryLargeInt VeryLargeInt; typedef
93 void* VliSerialize(BigNumStr* dest, VeryLargeInt const* src);
101 void const* VliDeserialize(VeryLargeInt* dest, BigNumStr const* src);
Dfp.h28 typedef struct VeryLargeInt VeryLargeInt; typedef
69 void FpExp(FpElem* result, FpElem const* base, VeryLargeInt const* exp);
Dfq.h28 typedef struct VeryLargeInt VeryLargeInt; typedef
69 void FqExp(FqElem* result, FqElem const* base, VeryLargeInt const* exp);
Dfq2.h27 typedef struct VeryLargeInt VeryLargeInt; typedef
64 void Fq2Exp(Fq2Elem* result, Fq2Elem const* base, VeryLargeInt const* exp);
/external/epid-sdk/epid/member/tiny/math/unittests/
Dvli-test.cc38 VeryLargeInt result = {0}; in TEST()
39 VeryLargeInt expected = {0}; in TEST()
40 VeryLargeInt left = {0}; in TEST()
41 VeryLargeInt right = {0}; in TEST()
49 VeryLargeInt left = {{0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, in TEST()
51 VeryLargeInt right = {{0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1}}; in TEST()
52 VeryLargeInt expected = {{0x0, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1}}; in TEST()
55 VeryLargeInt result = {0}; in TEST()
65 VeryLargeInt left = {0}, right = {0}; in TEST()
77 VeryLargeInt left = {{0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, in TEST()
[all …]
Dcmp-testhelper.h22 typedef struct VeryLargeInt VeryLargeInt; typedef
35 bool operator==(VeryLargeInt const& lhs, VeryLargeInt const& rhs);
Dfq12-test.cc531 VeryLargeInt exponent = {0x76abb18a, 0x92c0f7b9, 0x2c1a37e0, 0x7fdf6ca1, in TEST()
614 VeryLargeInt exponent = {0x76abb18a, 0x92c0f7b9, 0x2c1a37e0, 0x7fdf6ca1, in TEST()
619 VeryLargeInt e1 = exponent; in TEST()
620 VeryLargeInt e2 = {0}; in TEST()
621 VeryLargeInt e3 = exponent; in TEST()
845 VeryLargeInt pairing_t = {0x30b0a801, 0x6882f5c0, 0x00000000, 0x00000000, in TEST()
Dcmp-testhelper.cc29 bool operator==(VeryLargeInt const& lhs, VeryLargeInt const& rhs) { in operator ==()
Dserialize-test.cc85 const VeryLargeInt vli = {0x01020304, 0x05060708, 0x090A0B0C, 0x0D0E0F10, in TEST()
100 VeryLargeInt vli = {0}; in TEST()
101 const VeryLargeInt expected_vli = {0x01020304, 0x05060708, 0x090A0B0C, in TEST()
Dfp-test.cc105 VeryLargeInt exp = {0xD10B500C, 0xF62D536C, 0x1299921A, 0x0CDC65FB, in TEST()
Dfq2-test.cc86 VeryLargeInt exp = {0xAED33012, 0xD3292DDB, 0x12980A82, 0x0CDC65FB, in TEST()
Dfq-test.cc105 VeryLargeInt exp = {0xAED33012, 0xD3292DDB, 0x12980A82, 0x0CDC65FB, in TEST()
/external/epid-sdk/epid/member/tiny/math/src/
Dvli.c50 uint32_t VliAdd(VeryLargeInt* result, VeryLargeInt const* left, in VliAdd()
51 VeryLargeInt const* right) { in VliAdd()
62 void VliMul(VeryLargeIntProduct* result, VeryLargeInt const* left, in VliMul()
63 VeryLargeInt const* right) { in VliMul()
83 void VliRShift(VeryLargeInt* result, VeryLargeInt const* in, uint32_t shift) { in VliRShift()
91 uint32_t VliSub(VeryLargeInt* result, VeryLargeInt const* left, in VliSub()
92 VeryLargeInt const* right) { in VliSub()
104 void VliSet(VeryLargeInt* result, VeryLargeInt const* in) { in VliSet()
111 void VliClear(VeryLargeInt* result) { in VliClear()
118 int VliIsZero(VeryLargeInt const* in) { in VliIsZero()
[all …]
Dfp.c33 static VeryLargeInt const epid20_p = {{0xD10B500D, 0xF62D536C, 0x1299921A,
37 static VeryLargeInt const p_minus_one = {{0xD10B500C, 0xF62D536C, 0x1299921A,
55 void FpExp(FpElem* result, FpElem const* base, VeryLargeInt const* exp) { in FpExp()
Dfq12.c115 void Fq12Exp(Fq12Elem* result, Fq12Elem const* base, VeryLargeInt const* exp) { in Fq12Exp()
131 VeryLargeInt const* exp0, Fq12Elem const* base1, in Fq12MultiExp()
132 VeryLargeInt const* exp1, Fq12Elem const* base2, in Fq12MultiExp()
133 VeryLargeInt const* exp2, Fq12Elem const* base3, in Fq12MultiExp()
134 VeryLargeInt const* exp3) { in Fq12MultiExp()
154 void Fq12ExpCyc(Fq12Elem* result, Fq12Elem const* in, VeryLargeInt const* t) { in Fq12ExpCyc()
Dfq.c33 static VeryLargeInt const epid20_q = {{0xAED33013, 0xD3292DDB, 0x12980A82,
51 void FqExp(FqElem* result, FqElem const* base, VeryLargeInt const* exp) { in FqExp()
91 VeryLargeInt tmp; in FqSqrt()
Dpairing.c27 static const VeryLargeInt epid_e = {{0xf2788803, 0x7886dcf9, 0x2dc401c0,
30 static const VeryLargeInt epid_t = {{0x30B0A801, 0x6882F5C0, 0, 0, 0, 0, 0, 0}};
249 VeryLargeInt s; in PairingCompute()
250 const VeryLargeInt two = {{2}}; in PairingCompute()
Dserialize.c70 void* VliSerialize(BigNumStr* dest, VeryLargeInt const* src) { in VliSerialize()
83 void const* VliDeserialize(VeryLargeInt* dest, BigNumStr const* src) { in VliDeserialize()
Dfq2.c44 void Fq2Exp(Fq2Elem* result, Fq2Elem const* base, VeryLargeInt const* exp) { in Fq2Exp()