Home
last modified time | relevance | path

Searched refs:FpElem (Results 1 – 25 of 26) sorted by relevance

12

/external/epid-sdk/epid/member/tiny/math/
Dfp.h27 typedef struct FpElem FpElem; typedef
37 int FpInField(FpElem const* in);
45 void FpAdd(FpElem* result, FpElem const* left, FpElem const* right);
53 void FpMul(FpElem* result, FpElem const* left, FpElem const* right);
61 void FpSub(FpElem* result, FpElem const* left, FpElem const* right);
69 void FpExp(FpElem* result, FpElem const* base, VeryLargeInt const* exp);
76 void FpNeg(FpElem* result, FpElem const* in);
85 int FpEq(FpElem const* left, FpElem const* right);
92 void FpInv(FpElem* result, FpElem const* in);
102 int FpRand(FpElem* result, BitSupplier rnd_func, void* rnd_param);
[all …]
Defq.h28 typedef struct FpElem FpElem; typedef
42 FpElem const* exp);
54 int EFqAffineExp(EccPointFq* result, EccPointFq const* base, FpElem const* exp);
67 FpElem const* exp0, EccPointFq const* base1,
68 FpElem const* exp1);
80 FpElem const* exp0, EccPointJacobiFq const* base1,
81 FpElem const* exp1);
Dserialize.h33 typedef struct FpElem FpElem; typedef
141 void* FpSerialize(FpElemStr* dest, FpElem const* src);
149 void const* FpDeserialize(FpElem* dest, FpElemStr const* src);
Defq2.h25 typedef struct FpElem FpElem; typedef
84 FpElem const* right);
Dmathtypes.h42 typedef struct FpElem { struct
44 } FpElem; typedef
/external/epid-sdk/epid/member/tiny/math/unittests/
Dfp-test.cc35 FpElem zero = {0}; in TEST()
36 FpElem p_minus_one = {{0xD10B500C, 0xF62D536C, 0x1299921A, 0x0CDC65FB, in TEST()
43 FpElem p = {{0xD10B500D, 0xF62D536C, 0x1299921A, 0x0CDC65FB, 0xEE71A49E, in TEST()
52 FpElem result = {0}, expected = {0}, left = {0}, right = {0}; in TEST()
59 FpElem p_minus_one = {0xD10B500C, 0xF62D536C, 0x1299921A, 0x0CDC65FB, in TEST()
71 FpElem left = {0x22cfd6a2, 0x23e82f1e, 0xd50e1450, 0xe853e88c, in TEST()
73 FpElem right = {0x848cdb73, 0x6399829e, 0xcaa20cc0, 0x1b02bff6, in TEST()
75 FpElem expected = {0x3f172ebf, 0xf2219fce, 0x73591802, 0x7a7dbc7f, in TEST()
77 FpElem result = {0}; in TEST()
86 FpElem result = {0}, expected = {0}, left = {0}, right = {0}; in TEST()
[all …]
Dcmp-testhelper.h24 typedef struct FpElem FpElem; typedef
39 bool operator==(FpElem const& lhs, FpElem const& rhs);
Defq-test.cc52 const FpElem power = {0x0adf9a12, 0x5cbc9ef4, 0x91762984, 0xa08a22fb, in TEST()
75 const FpElem power = {0x0adf9a12, 0x5cbc9ef4, 0x91762984, 0xa08a22fb, in TEST()
96 FpElem fp_exp = {3}; in TEST()
113 FpElem fp_exp = {3}; in TEST()
134 FpElem fp_exp = {3}; in TEST()
157 FpElem fp_exp = {3}; in TEST()
Dcmp-testhelper.cc37 bool operator==(FpElem const& lhs, FpElem const& rhs) { in operator ==()
Dserialize-test.cc325 const FpElem fpelm = {0x01020304, 0x05060708, 0x090A0B0C, 0x0D0E0F10, in TEST()
344 FpElem fpelm = {0}; in TEST()
345 const FpElem expected_fpelm = {0x01020304, 0x05060708, 0x090A0B0C, in TEST()
Defq2-test.cc277 const FpElem power = {0xeb515e82, 0xda641a2f, 0x642e3fdc, 0x242d1caf, in TEST()
310 const FpElem power = {0xeb515e82, 0xda641a2f, 0x642e3fdc, 0x242d1caf, in TEST()
/external/epid-sdk/epid/member/tiny/math/src/
Dfp.c31 ((sizeof(FpElem) + EPID_SLEN / CHAR_BIT) / sizeof(uint32_t))
36 static FpElem const one = {{{1, 0, 0, 0, 0, 0, 0, 0}}};
41 int FpInField(FpElem const* in) { return (VliCmp(&in->limbs, &epid20_p) < 0); } in FpInField()
43 void FpAdd(FpElem* result, FpElem const* left, FpElem const* right) { in FpAdd()
47 void FpMul(FpElem* result, FpElem const* left, FpElem const* right) { in FpMul()
51 void FpSub(FpElem* result, FpElem const* left, FpElem const* right) { in FpSub()
55 void FpExp(FpElem* result, FpElem const* base, VeryLargeInt const* exp) { in FpExp()
59 void FpNeg(FpElem* result, FpElem const* in) { in FpNeg()
64 int FpEq(FpElem const* left, FpElem const* right) { in FpEq()
68 void FpInv(FpElem* result, FpElem const* in) { in FpInv()
[all …]
Defq.c43 FpElem const* exp) { in EFqMulSSCM()
60 FpElem const* exp) { in EFqAffineExp()
68 FpElem const* exp0, EccPointFq const* base1, in EFqAffineMultiExp()
69 FpElem const* exp1) { in EFqAffineMultiExp()
79 FpElem const* exp0, EccPointJacobiFq const* base1, in EFqMultiExp()
80 FpElem const* exp1) { in EFqMultiExp()
Dfq.c31 ((sizeof(FpElem) + EPID_SLEN / CHAR_BIT) / sizeof(uint32_t))
108 if (rnd_func(t, sizeof(FpElem) * CHAR_BIT + EPID_SLEN, rnd_param)) { in FqRand()
Dserialize.c166 void* FpSerialize(FpElemStr* dest, FpElem const* src) { in FpSerialize()
176 void const* FpDeserialize(FpElem* dest, FpElemStr const* src) { in FpDeserialize()
/external/epid-sdk/epid/member/tiny/src/
Dnative_types.h36 FpElem x; ///< an integer between [0, p-1]
42 FpElem f; ///< an integer between [0, p-1]
58 FpElem c; ///< an integer between [0, p-1]
59 FpElem sx; ///< an integer between [0, p-1]
60 FpElem sf; ///< an integer between [0, p-1]
61 FpElem sa; ///< an integer between [0, p-1]
62 FpElem sb; ///< an integer between [0, p-1]
Dpresig_compute.h39 FpElem a; ///< an integer between [0, p-1]
40 FpElem b; ///< an integer between [0, p-1]
41 FpElem rx; ///< an integer between [0, p-1]
42 FpElem rf; ///< an integer between [0, p-1]
43 FpElem ra; ///< an integer between [0, p-1]
44 FpElem rb; ///< an integer between [0, p-1]
Dpresig_compute.c33 static const FpElem epid20_p = {{0xD10B500D, 0xF62D536C, 0x1299921A, 0x0CDC65FB,
67 FpDeserialize((FpElem*)&t.x, &ctx->credential.x); in EpidMemberComputePreSig()
68 FpMul(&presig->b, &presig->a, (FpElem*)&t.x); in EpidMemberComputePreSig()
84 FpMul((FpElem*)&t.y, &presig->a, &presig->rx); in EpidMemberComputePreSig()
85 FpSub((FpElem*)&t.y, &presig->rb, (FpElem*)&t.y); in EpidMemberComputePreSig()
95 FpClear((FpElem*)&t.x); in EpidMemberComputePreSig()
96 FpClear((FpElem*)&t.y); in EpidMemberComputePreSig()
Dnrprove.c28 static const FpElem epid20_p = {
40 FpElem mu; in EpidNrProve()
41 FpElem rmu; in EpidNrProve()
42 FpElem smu; in EpidNrProve()
43 FpElem nu; in EpidNrProve()
44 FpElem rnu; in EpidNrProve()
45 FpElem snu; in EpidNrProve()
54 FpElem c; in EpidNrProve()
Dvalidate.h22 typedef struct FpElem FpElem; typedef
62 FpElem const* f,
Dcreatejoinrequest.c67 FpElem r; in EpidCreateJoinRequest()
68 FpElem c; in EpidCreateJoinRequest()
69 FpElem t; in EpidCreateJoinRequest()
Dcontext.h63 FpElem f; ///< secret f value
Dvalidate.c55 FpElem const* f, in MembershipCredentialIsInGroup()
Dsignbasic.c68 FpElem x; in EpidSignBasic()
/external/epid-sdk/epid/member/tiny/unittests/internal/
Dvalidate-test.cc134 FpElem const f = {0x636131c7, 0x362d4135, 0xa707879b, 0xa16567fd, in TEST_F()
172 FpElem const f = {0x636131c7, 0x362d4135, 0xa707879b, 0xa16567fd, in TEST_F()

12