1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- #ifndef EPID_COMMON_TESTHELPER_ECGROUP_WRAPPER_TESTHELPER_H_
- #define EPID_COMMON_TESTHELPER_ECGROUP_WRAPPER_TESTHELPER_H_
- #include <memory>
- #include <vector>
- extern "C" {
- #include "epid/common/math/ecgroup.h"
- }
- #include "epid/common-testhelper/finite_field_wrapper-testhelper.h"
- class EcGroupObj {
- public:
-
- EcGroupObj();
-
- EcGroupObj(EcGroupObj const& other);
-
- EcGroupObj& operator=(EcGroupObj const& other);
-
- explicit EcGroupObj(FiniteFieldObj* ff, FfElement const* a,
- FfElement const* b, FfElement const* x,
- FfElement const* y, BigNum const* order,
- BigNum const* cofactor);
-
- ~EcGroupObj();
-
- operator EcGroup*();
-
- operator const EcGroup*() const;
-
- EcGroup* get();
-
- EcGroup const* getc() const;
-
- size_t GetElementMaxSize() const;
- private:
- struct State;
- std::unique_ptr<State> state_;
- };
- #endif
|