/external/epid-sdk/epid/common-testhelper/ |
D | finite_field_wrapper-testhelper.cc | 40 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 …]
|
D | finite_field_wrapper-testhelper.h | 37 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();
|
D | ffelement_wrapper-testhelper.h | 33 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 …]
|
D | ffelement_wrapper-testhelper.cc | 42 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 …]
|
D | epid_params-testhelper.h | 52 FiniteFieldObj GT; 55 FiniteFieldObj fq; 56 FiniteFieldObj fp; 71 FiniteFieldObj fq2; 72 FiniteFieldObj fq6;
|
D | epid_params-testhelper.cc | 42 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()
|
D | ecgroup_wrapper-testhelper.cc | 45 FiniteFieldObj fintefield_; 83 FiniteFieldObj fq(q_str); in EcGroupObj() 103 EcGroupObj::EcGroupObj(FiniteFieldObj* ff, FfElement const* a, in EcGroupObj()
|
D | ecgroup_wrapper-testhelper.h | 46 explicit EcGroupObj(FiniteFieldObj* ff, FfElement const* a,
|
/external/epid-sdk/epid/common-testhelper/unittests/ |
D | finite_field_wrapper-test.cc | 56 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 …]
|
D | ffelement_wrapper-test.cc | 38 static FiniteFieldObj ff; 74 FiniteFieldObj FfElementObjTest::ff(prime_str); 97 FiniteFieldObj ff2(ff, ffe1, 2); in TEST_F()
|
D | ecgroup_wrapper-test.cc | 93 FiniteFieldObj fq(this->q_str); in TEST_F()
|
/external/epid-sdk/epid/common/math/unittests/ |
D | finitefield-test.cc | 136 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()
|
D | printutils-test.cc | 64 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()
|
D | ffelement-test.cc | 92 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 …]
|
D | ecgroup-test.cc | 57 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()
|
D | tatepairing-test.cc | 143 FiniteFieldObj GFp; in TEST_F()
|
/external/epid-sdk/epid/common-testhelper/1.1/ |
D | epid_params-testhelper.cc | 42 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()
|
D | epid_params-testhelper.h | 50 FiniteFieldObj GT;
|