123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- #ifndef EPID_MEMBER_TPM2_UNITTESTS_TPM2_TESTHELPER_H_
- #define EPID_MEMBER_TPM2_UNITTESTS_TPM2_TESTHELPER_H_
- #include <stdint.h>
- #include <climits>
- #include <vector>
- #include "epid/common-testhelper/epid_gtest-testhelper.h"
- #include "epid/member/tpm2/unittests/tpm2_wrapper-testhelper.h"
- #include "gtest/gtest.h"
- extern "C" {
- #include "epid/common/bitsupplier.h"
- #include "epid/common/src/hashsize.h"
- #include "epid/member/tpm2/context.h"
- }
- typedef struct FqElemStr FqElemStr;
- typedef struct FpElemStr FpElemStr;
- typedef struct G1ElemStr G1ElemStr;
- class EpidTpm2Test : public ::testing::Test {
- public:
-
- static const std::vector<uint8_t> kTpmFfElemStrData;
- static const G1ElemStr kEpidPointStr;
- static const uint8_t kDigestSha256[EPID_SHA256_DIGEST_BITSIZE / CHAR_BIT];
- static const FpElemStr kMemberFValue;
- static const G1ElemStr kP1Str;
- static const G1ElemStr kg1Str;
- static const std::vector<uint8_t> kS2Sha256;
- static const FqElemStr kY2Sha256Str;
- static const G1ElemStr kP2Sha256Str;
- static const G1ElemStr kP2Sha256ExpF;
- static const std::vector<uint8_t> kS2Sha384;
- static const FqElemStr kY2Sha384Str;
- static const G1ElemStr kP2Sha384Str;
- static const G1ElemStr kP2Sha384ExpF;
- static const std::vector<uint8_t> kS2Sha512;
- static const FqElemStr kY2Sha512Str;
- static const G1ElemStr kP2Sha512Str;
- static const G1ElemStr kP2Sha512ExpF;
- static const std::vector<uint8_t> kS2Sha512256;
- static const FqElemStr kY2Sha512256Str;
- static const G1ElemStr kP2Sha512256Str;
- static const G1ElemStr kP2Sha512256ExpF;
-
- virtual void SetUp() {}
-
- virtual void TearDown() {}
- };
- bool operator==(FpElemStr const& lhs, FpElemStr const& rhs);
- bool operator==(G1ElemStr const& lhs, G1ElemStr const& rhs);
- #endif
|