123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- #ifndef EPID_MEMBER_UNITTESTS_MEMBER_TESTHELPER_H_
- #define EPID_MEMBER_UNITTESTS_MEMBER_TESTHELPER_H_
- #include <stdint.h>
- #include <vector>
- #include "epid/common-testhelper/epid_gtest-testhelper.h"
- #include "epid/common-testhelper/member_wrapper-testhelper.h"
- #include "gtest/gtest.h"
- extern "C" {
- #include "epid/member/api.h"
- }
- typedef struct G1ElemStr G1ElemStr;
- bool operator==(G1ElemStr const& lhs, G1ElemStr const& rhs);
- bool operator==(MembershipCredential const& lhs,
- MembershipCredential const& rhs);
- bool operator==(GroupPubKey const& lhs, GroupPubKey const& rhs);
- class EpidMemberTest : public ::testing::Test {
- public:
-
- static const GroupPubKey kGroupPublicKey;
-
- static const PrivKey kMemberPrivateKey;
-
- static const std::vector<uint8_t> kGroupPublicKeyDataIkgf;
-
- static const std::vector<uint8_t> kMemberPrivateKeyDataIkgf;
-
- static const MemberPrecomp kMemberPrecomp;
-
- static const std::vector<uint8_t> kGrp01Member0SigTest1Sha256;
-
- static const std::vector<uint8_t> kGrp01Member0SigTest1Sha384;
-
- static const std::vector<uint8_t> kGrp01Member0SigTest1Sha512;
-
- static const std::vector<uint8_t> kTest1Msg;
-
- static std::vector<uint8_t> kSigRlData;
-
- static std::vector<uint8_t> kSigRl5EntryData;
-
- static const std::vector<uint8_t> kMsg0;
-
- static const std::vector<uint8_t> kMsg1;
-
- static const std::vector<uint8_t> kBsn0;
-
- static const std::vector<uint8_t> kBsn1;
-
- static const std::vector<uint8_t> kData_0_255;
-
- static const GroupPubKey kGrpXKey;
-
- static const PrivKey kGrpXMember0PrivKey;
-
- static const PrivKey kGrpXSigrevokedMember0PrivKey;
-
- static const std::vector<uint8_t> kGrpXSigRl;
-
- static const std::vector<uint8_t> kGrpXSigRlSingleEntry;
-
- static const CompressedPrivKey kGrpXMember9CompressedKey;
-
- static const PrivKey kGrpXMember9PrivKey;
-
- static const GroupPubKey kGrpYKey;
-
- static const CompressedPrivKey kGrpYMember9CompressedKey;
-
- static const OctStr32 kOctStr32_1;
-
- static const GroupPubKey kEps0GroupPublicKey;
-
- static const PrivKey kEps0MemberPrivateKey;
-
- virtual void SetUp() {}
-
- virtual void TearDown() {}
- };
- #endif
|