Home
last modified time | relevance | path

Searched refs:EpidTpm2Test (Results 1 – 14 of 14) sorted by relevance

/external/epid-sdk/epid/member/tpm2/unittests/
Dtpm2-testhelper.cc37 const std::vector<uint8_t> EpidTpm2Test::kTpmFfElemStrData = {
42 const G1ElemStr EpidTpm2Test::kEpidPointStr = {
51 EpidTpm2Test::kDigestSha256[EPID_SHA256_DIGEST_BITSIZE / CHAR_BIT] = {
56 const FpElemStr EpidTpm2Test::kMemberFValue = {
60 const G1ElemStr EpidTpm2Test::kP1Str = {
67 const G1ElemStr EpidTpm2Test::kg1Str = {
75 const std::vector<uint8_t> EpidTpm2Test::kS2Sha256 = {0, 0, 0, 4,
77 const FqElemStr EpidTpm2Test::kY2Sha256Str = {
81 const G1ElemStr EpidTpm2Test::kP2Sha256Str = {
88 const G1ElemStr EpidTpm2Test::kP2Sha256ExpF = {
[all …]
Dconversion-tss-test.cc43 TEST_F(EpidTpm2Test, EpidtoTpm2HashAlgWorksCorrectly) { in TEST_F() argument
53 TEST_F(EpidTpm2Test, Tpm2toEpidHashAlgWorksCorrectly) { in TEST_F() argument
62 TEST_F(EpidTpm2Test, ReadTpm2FfElementFailsGivenNullPointer) { in TEST_F() argument
69 TEST_F(EpidTpm2Test, ReadTpm2FfElementMapsGivenValidArguments) { in TEST_F() argument
82 TEST_F(EpidTpm2Test, WriteTpm2FfElementFailsGivenNullPointer) { in TEST_F() argument
89 TEST_F(EpidTpm2Test, WriteTpm2FfElementfailsGivenSmallBufSize) { in TEST_F() argument
99 TEST_F(EpidTpm2Test, WriteTpm2FfElementWorksGivenLargerBufSize) { in TEST_F() argument
116 TEST_F(EpidTpm2Test, WriteTpm2FfElementWorksGivenValidArguments) { in TEST_F() argument
128 TEST_F(EpidTpm2Test, ReadTpm2EcPointFailsGivenNullPointer) { in TEST_F() argument
135 TEST_F(EpidTpm2Test, ReadTpm2EcPointWorksGivenValidArguments) { in TEST_F() argument
[all …]
Dcontext-test.cc36 TEST_F(EpidTpm2Test, CreateFailsGivenNullParameters) { in TEST_F() argument
62 TEST_F(EpidTpm2Test, CreateSucceedsGivenValidParameters) { in TEST_F() argument
79 TEST_F(EpidTpm2Test, DeleteWorksGivenNullTpm2Ctx) { in TEST_F() argument
85 TEST_F(EpidTpm2Test, DeleteNullsTpm2Ctx) { in TEST_F() argument
99 TEST_F(EpidTpm2Test, PROTECTED_SampleTest) { SUCCEED(); } in TEST_F() argument
101 TEST_F(EpidTpm2Test, PROTECTED_EPS1_SampleTest) { SUCCEED(); } in TEST_F() argument
103 TEST_F(EpidTpm2Test, PROTECTED_EPSOther_SampleTest) { SUCCEED(); } in TEST_F() argument
Dcommit-test.cc39 TEST_F(EpidTpm2Test, CommitFailsGivenNullParameters) { in TEST_F() argument
76 TEST_F(EpidTpm2Test, CommitFailsGivenInvalidLength) { in TEST_F() argument
96 TEST_F(EpidTpm2Test, CommitFailsGivenPrivateKeyDoesNotExists) { in TEST_F() argument
113 TEST_F(EpidTpm2Test, CommitFailsGivenS2y2NotOnCurve) { in TEST_F() argument
134 TEST_F(EpidTpm2Test, CommitFailsIfResultIsAtInfinity) { in TEST_F() argument
154 TEST_F(EpidTpm2Test, CommitCanUseKeyLoadedByLoadExternal) { in TEST_F() argument
177 TEST_F(EpidTpm2Test, CommitReturnsSameLEForSameP1P2) { in TEST_F() argument
206 TEST_F(EpidTpm2Test, CommitCanBeUsedTwice) { in TEST_F() argument
229 TEST_F(EpidTpm2Test, CommitCanUseHashFromEcHashSha256) { in TEST_F() argument
260 TEST_F(EpidTpm2Test, CommitCanUseHashFromEcHashSha384) { in TEST_F() argument
[all …]
Dload_external-simulator-test.cc34 TEST_F(EpidTpm2Test, LoadExternalCanLoadFValueSha384) { in TEST_F() argument
42 TEST_F(EpidTpm2Test, LoadExternalCanLoadFValueSha512) { in TEST_F() argument
50 TEST_F(EpidTpm2Test, LoadExternalCanLoadFValueSha512_256) { in TEST_F() argument
Dload_external-test.cc32 TEST_F(EpidTpm2Test, SetHashAlgFailsIfHashAlgNotSupported) { in TEST_F() argument
43 TEST_F(EpidTpm2Test, LoadExternalFailsGivenNullParameters) { in TEST_F() argument
52 TEST_F(EpidTpm2Test, LoadExternalCanLoadFValueSha256) { in TEST_F() argument
Dsign-test.cc78 TEST_F(EpidTpm2Test, SignProducesValidSignature) { in TEST_F() argument
112 TEST_F(EpidTpm2Test, SignProducesValidSignatureTwoTimes) { in TEST_F() argument
156 TEST_F(EpidTpm2Test, SignFailsGivenNullParameters) { in TEST_F() argument
180 TEST_F(EpidTpm2Test, SignFailsGivenInvalidDigestLen) { in TEST_F() argument
204 TEST_F(EpidTpm2Test, SignFailsGivenUnrecognizedCounter) { in TEST_F() argument
239 TEST_F(EpidTpm2Test, SignFailsGivenPreviouslyUsedCounter) { in TEST_F() argument
261 TEST_F(EpidTpm2Test, SignFailsIfKeyNotSet) { in TEST_F() argument
278 TEST_F(EpidTpm2Test, ReleaseCounterFailsGivenNullPtr) { in TEST_F() argument
288 TEST_F(EpidTpm2Test, ReleaseCounterSuccessfullyReleasesCounter) { in TEST_F() argument
Dgetrandom-test.cc34 TEST_F(EpidTpm2Test, GetRandomFailsGivenNullParameters) { in TEST_F() argument
44 TEST_F(EpidTpm2Test, GetRandomReturnsDifferentBufs) { in TEST_F() argument
56 TEST_F(EpidTpm2Test, GetRandomCanGenerateLongStream) { in TEST_F() argument
Dcreateprimary-test.cc32 TEST_F(EpidTpm2Test, CreatePrimaryFailsGivenNullParameters) { in TEST_F() argument
39 TEST_F(EpidTpm2Test, CreatePrimaryWorksGivenValidParameter) { in TEST_F() argument
Dcommit-simulator-test.cc40 TEST_F(EpidTpm2Test, CommitComputeKLESha256) { in TEST_F() argument
84 TEST_F(EpidTpm2Test, CommitComputeKLESha384) { in TEST_F() argument
129 TEST_F(EpidTpm2Test, CommitComputeKLESha512) { in TEST_F() argument
174 TEST_F(EpidTpm2Test, CommitComputeKLESha512256) { in TEST_F() argument
219 TEST_F(EpidTpm2Test, CommitComputeEOnly) { in TEST_F() argument
255 TEST_F(EpidTpm2Test, CommitComputeEOnlyWithDefaultP1) { in TEST_F() argument
Dgetrandom-simulator-test.cc36 TEST_F(EpidTpm2Test, GetRandomGetsExpectedDataForGivenSeed) { in TEST_F() argument
Dgetrandom-tss-test.cc33 TEST_F(EpidTpm2Test, GetRandomOnTssReturnsDifferentBufs) { in TEST_F() argument
Dtpm2-testhelper.h40 class EpidTpm2Test : public ::testing::Test {
Dsign-simulator-test.cc37 TEST_F(EpidTpm2Test, SignProducesKnownSignature) { in TEST_F() argument