Home
last modified time | relevance | path

Searched refs:FiniteFieldObj (Results 1 – 18 of 18) sorted by relevance

/external/epid-sdk/epid/common-testhelper/
Dfinite_field_wrapper-testhelper.cc40 struct FiniteFieldObj::State {
44 FiniteFieldObj gf_;
82 void SetInnerState(FiniteFieldObj const& gf) { in SetInnerState()
107 FiniteFieldObj::FiniteFieldObj() : state_(new State()) { in FiniteFieldObj() function in FiniteFieldObj
118 FiniteFieldObj::FiniteFieldObj(FiniteFieldObj const& other) in FiniteFieldObj() function in FiniteFieldObj
125 FiniteFieldObj& FiniteFieldObj::operator=(FiniteFieldObj const& other) { in operator =()
132 FiniteFieldObj::FiniteFieldObj(BigNumStr const& prime) : state_(new State) { in FiniteFieldObj() function in FiniteFieldObj
139 FiniteFieldObj::FiniteFieldObj(FiniteFieldObj const& ground_field, in FiniteFieldObj() function in FiniteFieldObj
150 FiniteFieldObj::FiniteFieldObj(FiniteFieldObj const& ground_field, in FiniteFieldObj() function in FiniteFieldObj
161 FiniteFieldObj::~FiniteFieldObj() {} in ~FiniteFieldObj()
[all …]
Dfinite_field_wrapper-testhelper.h37 class FiniteFieldObj {
40 FiniteFieldObj();
42 FiniteFieldObj(FiniteFieldObj const& other);
44 FiniteFieldObj& operator=(FiniteFieldObj const& other);
46 explicit FiniteFieldObj(BigNumStr const& prime);
48 FiniteFieldObj(FiniteFieldObj const& ground_field,
51 FiniteFieldObj(FiniteFieldObj const& ground_field,
54 ~FiniteFieldObj();
Dffelement_wrapper-testhelper.h33 class FiniteFieldObj; variable
48 explicit FfElementObj(FiniteFieldObj* ff);
50 FfElementObj(FiniteFieldObj* ff, FpElemStr const& bytes);
52 FfElementObj(FiniteFieldObj* ff, FqElemStr const& bytes);
54 FfElementObj(FiniteFieldObj* ff, Fq2ElemStr const& bytes);
56 FfElementObj(FiniteFieldObj* ff, Fq3ElemStr const& bytes);
58 FfElementObj(FiniteFieldObj* ff, Fq6ElemStr const& bytes);
60 FfElementObj(FiniteFieldObj* ff, Fq12ElemStr const& bytes);
62 FfElementObj(FiniteFieldObj* ff, std::vector<unsigned char> const& bytes);
64 FfElementObj(FiniteFieldObj* ff, void const* bytes, size_t size);
[all …]
Dffelement_wrapper-testhelper.cc42 FiniteFieldObj ff_;
50 void write(FiniteFieldObj* ff, unsigned char const* buf, size_t buflen) { in write()
78 FfElementObj::FfElementObj(FiniteFieldObj* ff) : state_(new State) { in FfElementObj()
82 FfElementObj::FfElementObj(FiniteFieldObj* ff, FpElemStr const& bytes) in FfElementObj()
87 FfElementObj::FfElementObj(FiniteFieldObj* ff, FqElemStr const& bytes) in FfElementObj()
92 FfElementObj::FfElementObj(FiniteFieldObj* ff, Fq2ElemStr const& bytes) in FfElementObj()
97 FfElementObj::FfElementObj(FiniteFieldObj* ff, Fq3ElemStr const& bytes) in FfElementObj()
102 FfElementObj::FfElementObj(FiniteFieldObj* ff, Fq6ElemStr const& bytes) in FfElementObj()
107 FfElementObj::FfElementObj(FiniteFieldObj* ff, Fq12ElemStr const& bytes) in FfElementObj()
112 FfElementObj::FfElementObj(FiniteFieldObj* ff, in FfElementObj()
[all …]
Depid_params-testhelper.h52 FiniteFieldObj GT;
55 FiniteFieldObj fq;
56 FiniteFieldObj fp;
71 FiniteFieldObj fq2;
72 FiniteFieldObj fq6;
Depid_params-testhelper.cc42 fp = FiniteFieldObj(p_str_); in Epid20Params()
45 fq = FiniteFieldObj(q_str_); in Epid20Params()
50 fq2 = FiniteFieldObj(fq, neg_beta, 2); in Epid20Params()
55 fq6 = FiniteFieldObj(fq2, neg_xi, 3); in Epid20Params()
60 GT = FiniteFieldObj(fq6, neg_v, 2); in Epid20Params()
Decgroup_wrapper-testhelper.cc45 FiniteFieldObj fintefield_;
83 FiniteFieldObj fq(q_str); in EcGroupObj()
103 EcGroupObj::EcGroupObj(FiniteFieldObj* ff, FfElement const* a, in EcGroupObj()
Decgroup_wrapper-testhelper.h46 explicit EcGroupObj(FiniteFieldObj* ff, FfElement const* a,
/external/epid-sdk/epid/common-testhelper/unittests/
Dfinite_field_wrapper-test.cc56 FiniteFieldObj ff; in TEST_F()
61 FiniteFieldObj ff1; in TEST_F()
62 FiniteFieldObj ff2; in TEST_F()
69 FiniteFieldObj ff1; in TEST_F()
70 FiniteFieldObj ff2(ff1); in TEST_F()
75 FiniteFieldObj ff1; in TEST_F()
76 FiniteFieldObj ff2(this->prime_str); in TEST_F()
78 FiniteFieldObj ff3(ff2, ffe, 2); in TEST_F()
82 FiniteFieldObj const ff; in TEST_F()
88 FiniteFieldObj const ff; in TEST_F()
[all …]
Dffelement_wrapper-test.cc38 static FiniteFieldObj ff;
74 FiniteFieldObj FfElementObjTest::ff(prime_str);
97 FiniteFieldObj ff2(ff, ffe1, 2); in TEST_F()
Decgroup_wrapper-test.cc93 FiniteFieldObj fq(this->q_str); in TEST_F()
/external/epid-sdk/epid/common/math/unittests/
Dfinitefield-test.cc136 FiniteFieldObj ground_field(q); in TEST()
152 FiniteFieldObj ground_field(q); in TEST()
174 FiniteFieldObj fq(q); in TEST()
179 FiniteFieldObj fq2(fq, neg_beta, 2); in TEST()
184 FiniteFieldObj fq6(fq2, neg_xi, 3); in TEST()
189 FiniteFieldObj fq12(fq6, neg_v, 2); in TEST()
199 FiniteFieldObj ground_field(q); in TEST()
214 FiniteFieldObj ground_field(q); in TEST()
232 FiniteFieldObj fq(q); in TEST()
235 FiniteFieldObj fqd(fq, coeffs, COUNT_OF(coeffs)); in TEST()
Dprintutils-test.cc64 FiniteFieldObj fp;
65 FiniteFieldObj fq;
66 FiniteFieldObj fq2;
67 FiniteFieldObj fq6;
68 FiniteFieldObj fq12;
93 fp = FiniteFieldObj(epid20_p); in ConstructFiniteFields()
97 fq = FiniteFieldObj(epid20_q); in ConstructFiniteFields()
103 fq2 = FiniteFieldObj(fq, neg_beta, 2); in ConstructFiniteFields()
109 fq6 = FiniteFieldObj(fq2, neg_xi, 3); in ConstructFiniteFields()
115 fq12 = FiniteFieldObj(fq6, neg_v, 2); in ConstructFiniteFields()
Dffelement-test.cc92 fq = FiniteFieldObj(bn_q_str); in SetUp()
97 fq2 = FiniteFieldObj(fq, neg_beta, 2); in SetUp()
102 fq6 = FiniteFieldObj(fq2, neg_xi, 3); in SetUp()
108 fq12 = FiniteFieldObj(fq6, neg_v, 2); in SetUp()
118 epid11_fq = FiniteFieldObj(bn_epid11_bn_q_str); in SetUp()
121 epid11_fqd = FiniteFieldObj(epid11_fq, bn_epid11_fq_coeffs, in SetUp()
133 epid11_GT = FiniteFieldObj( in SetUp()
143 fp = FiniteFieldObj(bn_p_str); in SetUp()
160 FiniteFieldObj fq;
161 FiniteFieldObj fq2;
[all …]
Decgroup-test.cc57 FiniteFieldObj fq2;
65 explicit EFq2Params(FiniteFieldObj* fq) { in EFq2Params()
100 fq2 = FiniteFieldObj(*fq, neg_beta, 2); in EFq2Params()
192 fq = FiniteFieldObj(q); in SetUp()
218 epid11_Fq_tick = FiniteFieldObj(epid11_params_str.q_tick); in SetUp()
236 FiniteFieldObj fq;
258 FiniteFieldObj epid11_Fq_tick;
594 FiniteFieldObj fq2(fq, neg_beta, 2); in TEST_F()
Dtatepairing-test.cc143 FiniteFieldObj GFp; in TEST_F()
/external/epid-sdk/epid/common-testhelper/1.1/
Depid_params-testhelper.cc42 FiniteFieldObj fq(this->q_str_); in Epid11ParamsObj()
52 FiniteFieldObj fq1(this->q1_str_); in Epid11ParamsObj()
65 FiniteFieldObj fqd(fq, this->coeffs_str_, COUNT_OF(this->coeffs_str_)); in Epid11ParamsObj()
76 GT = FiniteFieldObj(fqd, ground_element, 2); in Epid11ParamsObj()
Depid_params-testhelper.h50 FiniteFieldObj GT;