123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- #ifndef EPID_COMMON_TESTHELPER_ECPOINT_WRAPPER_TESTHELPER_H_
- #define EPID_COMMON_TESTHELPER_ECPOINT_WRAPPER_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"
- }
- class EcGroupObj;
- class EcPointObj {
- public:
-
- EcPointObj();
-
- EcPointObj(EcPointObj const& other);
-
- EcPointObj& operator=(EcPointObj const& other);
-
- explicit EcPointObj(EcGroupObj* group);
-
- EcPointObj(EcGroupObj* group, G1ElemStr const& bytes);
-
- EcPointObj(EcGroupObj* group, G2ElemStr const& bytes);
-
- EcPointObj(EcGroupObj* group, Epid11G2ElemStr const& bytes);
-
- EcPointObj(EcGroupObj* group, std::vector<unsigned char> const& bytes);
-
- EcPointObj(EcGroupObj* group, void const* bytes, size_t size);
-
- ~EcPointObj();
-
- operator EcPoint*();
-
- operator const EcPoint*() const;
-
- EcPoint* get();
-
- EcPoint const* getc() const;
-
- std::vector<unsigned char> data() const;
- private:
- void init(EcGroupObj* group, unsigned char const* bytes, size_t size);
- struct State;
- std::unique_ptr<State> state_;
- };
- #endif
|