123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- #ifndef EPID_COMMON_TESTHELPER_EPID_PARAMS_TESTHELPER_H_
- #define EPID_COMMON_TESTHELPER_EPID_PARAMS_TESTHELPER_H_
- #include <memory>
- #include "epid/common/types.h"
- extern "C" {
- #include "epid/common/math/bignum.h"
- #include "epid/common/math/ecgroup.h"
- #include "epid/common/math/finitefield.h"
- }
- #include "epid/common-testhelper/bignum_wrapper-testhelper.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"
- typedef struct Epid2Params_ Epid2Params_;
- class Epid20Params {
- public:
- Epid20Params();
-
-
- Epid20Params(const Epid20Params&) = delete;
- Epid20Params& operator=(const Epid20Params&) = delete;
- virtual ~Epid20Params() {}
- FiniteFieldObj GT;
- EcGroupObj G1;
- EcGroupObj G2;
- FiniteFieldObj fq;
- FiniteFieldObj fp;
- private:
- static const BigNumStr q_str_;
- static const FqElemStr beta_str_;
- static const Fq6ElemStr v_str_;
- static const BigNumStr p_str_;
- static const FqElemStr b_str_;
- static const FqElemStr h_str_;
- static const G1ElemStr g1_str_;
- static const Fq2ElemStr xi_str_;
- static const G2ElemStr g2_str_;
- FiniteFieldObj fq2;
- FiniteFieldObj fq6;
- };
- #endif
|