123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- #ifndef EPID_COMMON_TESTHELPER_1_1_EPID_PARAMS_TESTHELPER_H_
- #define EPID_COMMON_TESTHELPER_1_1_EPID_PARAMS_TESTHELPER_H_
- #include <memory>
- #include <vector>
- extern "C" {
- #include "epid/common/1.1/types.h"
- #include "epid/common/math/bignum.h"
- #include "epid/common/math/ecgroup.h"
- #include "epid/common/math/finitefield.h"
- }
- #include "epid/common-testhelper/ecgroup_wrapper-testhelper.h"
- #include "epid/common-testhelper/ecpoint_wrapper-testhelper.h"
- #include "epid/common-testhelper/ffelement_wrapper-testhelper.h"
- #include "epid/common-testhelper/finite_field_wrapper-testhelper.h"
- class Epid11ParamsObj {
- public:
- Epid11ParamsObj();
-
-
- Epid11ParamsObj(const Epid11ParamsObj&) = delete;
- Epid11ParamsObj& operator=(const Epid11ParamsObj&) = delete;
- virtual ~Epid11ParamsObj() {}
- FiniteFieldObj GT;
- EcGroupObj G1;
- EcGroupObj G2;
- EcGroupObj G3;
- private:
- static const BigNumStr p_str_;
- static const BigNumStr q_str_;
- static const std::vector<uint8_t> h_str_;
- static const FqElemStr a_str_;
- static const FqElemStr b_str_;
- static const BigNumStr coeffs_str_[3];
- static const FqElemStr qnr_str;
- static const std::vector<uint8_t> orderG2_str;
- static const BigNumStr p1_str_;
- static const BigNumStr q1_str_;
- static const std::vector<uint8_t> h1_str_;
- static const FqElemStr a1_str_;
- static const FqElemStr b1_str_;
- static const Epid11G1ElemStr g1_str_;
- static const Fq3ElemStr g2x_str_;
- static const Fq3ElemStr g2y_str_;
- static const Epid11G3ElemStr g3_str_;
- };
- #endif
|