/external/epid-sdk/epid/member/tiny/math/ |
D | vli.h | 25 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 …]
|
D | fq12.h | 26 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);
|
D | mathtypes.h | 32 typedef struct VeryLargeInt { struct 34 } VeryLargeInt; argument 43 VeryLargeInt limbs; ///< An integer in [0, p-1] 48 VeryLargeInt limbs; ///< An integer in [0, q-1]
|
D | serialize.h | 27 typedef struct VeryLargeInt VeryLargeInt; typedef 93 void* VliSerialize(BigNumStr* dest, VeryLargeInt const* src); 101 void const* VliDeserialize(VeryLargeInt* dest, BigNumStr const* src);
|
D | fp.h | 28 typedef struct VeryLargeInt VeryLargeInt; typedef 69 void FpExp(FpElem* result, FpElem const* base, VeryLargeInt const* exp);
|
D | fq.h | 28 typedef struct VeryLargeInt VeryLargeInt; typedef 69 void FqExp(FqElem* result, FqElem const* base, VeryLargeInt const* exp);
|
D | fq2.h | 27 typedef struct VeryLargeInt VeryLargeInt; typedef 64 void Fq2Exp(Fq2Elem* result, Fq2Elem const* base, VeryLargeInt const* exp);
|
/external/epid-sdk/epid/member/tiny/math/unittests/ |
D | vli-test.cc | 38 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 …]
|
D | cmp-testhelper.h | 22 typedef struct VeryLargeInt VeryLargeInt; typedef 35 bool operator==(VeryLargeInt const& lhs, VeryLargeInt const& rhs);
|
D | fq12-test.cc | 531 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()
|
D | cmp-testhelper.cc | 29 bool operator==(VeryLargeInt const& lhs, VeryLargeInt const& rhs) { in operator ==()
|
D | serialize-test.cc | 85 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()
|
D | fp-test.cc | 105 VeryLargeInt exp = {0xD10B500C, 0xF62D536C, 0x1299921A, 0x0CDC65FB, in TEST()
|
D | fq2-test.cc | 86 VeryLargeInt exp = {0xAED33012, 0xD3292DDB, 0x12980A82, 0x0CDC65FB, in TEST()
|
D | fq-test.cc | 105 VeryLargeInt exp = {0xAED33012, 0xD3292DDB, 0x12980A82, 0x0CDC65FB, in TEST()
|
/external/epid-sdk/epid/member/tiny/math/src/ |
D | vli.c | 50 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 …]
|
D | fp.c | 33 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()
|
D | fq12.c | 115 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()
|
D | fq.c | 33 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()
|
D | pairing.c | 27 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()
|
D | serialize.c | 70 void* VliSerialize(BigNumStr* dest, VeryLargeInt const* src) { in VliSerialize() 83 void const* VliDeserialize(VeryLargeInt* dest, BigNumStr const* src) { in VliDeserialize()
|
D | fq2.c | 44 void Fq2Exp(Fq2Elem* result, Fq2Elem const* base, VeryLargeInt const* exp) { in Fq2Exp()
|