Home | History | Annotate | Download | only in trunks

Lines Matching refs:TpmUtilityTest

45 class TpmUtilityTest : public testing::Test {
47 TpmUtilityTest() : utility_(factory_) {}
48 ~TpmUtilityTest() override {}
150 TEST_F(TpmUtilityTest, StartupSuccess) {
154 TEST_F(TpmUtilityTest, StartupAlreadyStarted) {
160 TEST_F(TpmUtilityTest, StartupFailure) {
166 TEST_F(TpmUtilityTest, StartupSelfTestFailure) {
172 TEST_F(TpmUtilityTest, ClearSuccess) {
176 TEST_F(TpmUtilityTest, ClearAfterBadInit) {
183 TEST_F(TpmUtilityTest, ClearFail) {
189 TEST_F(TpmUtilityTest, ShutdownTest) {
194 TEST_F(TpmUtilityTest, InitializeTpmAlreadyInit) {
200 TEST_F(TpmUtilityTest, InitializeTpmSuccess) {
205 TEST_F(TpmUtilityTest, InitializeTpmBadAuth) {
213 TEST_F(TpmUtilityTest, InitializeTpmDisablePHFails) {
221 TEST_F(TpmUtilityTest, AllocatePCRFromNone) {
236 TEST_F(TpmUtilityTest, AllocatePCRFromSHA1Only) {
251 TEST_F(TpmUtilityTest, AllocatePCRFromSHA1AndSHA256) {
266 TEST_F(TpmUtilityTest, AllocatePCRFromSHA256Only) {
273 TEST_F(TpmUtilityTest, AllocatePCRCommandFailure) {
280 TEST_F(TpmUtilityTest, AllocatePCRTpmFailure) {
288 TEST_F(TpmUtilityTest, TakeOwnershipSuccess) {
300 TEST_F(TpmUtilityTest, TakeOwnershipOwnershipDone) {
306 TEST_F(TpmUtilityTest, TakeOwnershipBadSession) {
314 TEST_F(TpmUtilityTest, TakeOwnershipFailure) {
322 TEST_F(TpmUtilityTest, ChangeOwnerPasswordEndorsementDone) {
332 TEST_F(TpmUtilityTest, ChangeOwnerPasswordLockoutDone) {
342 TEST_F(TpmUtilityTest, ChangeOwnerPasswordEndorsementLockoutDone) {
350 TEST_F(TpmUtilityTest, ChangeOwnerPasswordEndorsementFail) {
364 TEST_F(TpmUtilityTest, ChangeOwnerPasswordLockoutFailure) {
380 TEST_F(TpmUtilityTest, StirRandomSuccess) {
386 TEST_F(TpmUtilityTest, StirRandomFails) {
393 TEST_F(TpmUtilityTest, GenerateRandomSuccess) {
415 TEST_F(TpmUtilityTest, GenerateRandomFails) {
424 TEST_F(TpmUtilityTest, ExtendPCRSuccess) {
441 TEST_F(TpmUtilityTest, ExtendPCRFail) {
450 TEST_F(TpmUtilityTest, ExtendPCRBadParam) {
454 TEST_F(TpmUtilityTest, ReadPCRSuccess) {
474 TEST_F(TpmUtilityTest, ReadPCRFail) {
481 TEST_F(TpmUtilityTest, ReadPCRBadReturn) {
486 TEST_F(TpmUtilityTest, AsymmetricEncryptSuccess) {
515 TEST_F(TpmUtilityTest, AsymmetricEncryptFail) {
537 TEST_F(TpmUtilityTest, AsymmetricEncryptBadParams) {
555 TEST_F(TpmUtilityTest, AsymmetricEncryptNullSchemeForward) {
585 TEST_F(TpmUtilityTest, AsymmetricEncryptSchemeForward) {
614 TEST_F(TpmUtilityTest, AsymmetricDecryptSuccess) {
644 TEST_F(TpmUtilityTest, AsymmetricDecryptFail) {
669 TEST_F(TpmUtilityTest, AsymmetricDecryptBadParams) {
688 TEST_F(TpmUtilityTest, AsymmetricDecryptBadSession) {
699 TEST_F(TpmUtilityTest, AsymmetricDecryptNullSchemeForward) {
731 TEST_F(TpmUtilityTest, AsymmetricDecryptSchemeForward) {
762 TEST_F(TpmUtilityTest, SignSuccess) {
792 TEST_F(TpmUtilityTest, SignFail) {
815 TEST_F(TpmUtilityTest, SignBadParams1) {
834 TEST_F(TpmUtilityTest, SignBadAuthorizationSession) {
847 TEST_F(TpmUtilityTest, SignBadParams2) {
866 TEST_F(TpmUtilityTest, SignBadParams3) {
885 TEST_F(TpmUtilityTest, SignBadParams4) {
904 TEST_F(TpmUtilityTest, SignBadParams5) {
918 TEST_F(TpmUtilityTest, SignNullSchemeForward) {
948 TEST_F(TpmUtilityTest, SignSchemeForward) {
978 TEST_F(TpmUtilityTest, VerifySuccess) {
998 TEST_F(TpmUtilityTest, VerifyFail) {
1018 TEST_F(TpmUtilityTest, VerifyBadParams1) {
1036 TEST_F(TpmUtilityTest, VerifyBadParams2) {
1054 TEST_F(TpmUtilityTest, VerifyBadParams3) {
1072 TEST_F(TpmUtilityTest, VerifyBadParams4) {
1090 TEST_F(TpmUtilityTest, VerifyBadParams5) {
1108 TEST_F(TpmUtilityTest, VerifyNullSchemeForward) {
1132 TEST_F(TpmUtilityTest, VerifySchemeForward) {
1156 TEST_F(TpmUtilityTest, CertifyCreationSuccess) {
1166 TEST_F(TpmUtilityTest, CertifyCreationParserError) {
1175 TEST_F(TpmUtilityTest, CertifyCreationFailure) {
1185 TEST_F(TpmUtilityTest, ChangeAuthDataSuccess) {
1200 TEST_F(TpmUtilityTest, ChangeAuthDataKeyNameFail) {
1210 TEST_F(TpmUtilityTest, ChangeAuthDataFailure) {
1219 TEST_F(TpmUtilityTest, ChangeAuthDataParserFail) {
1236 TEST_F(TpmUtilityTest, ImportRSAKeySuccess) {
1301 TEST_F(TpmUtilityTest, ImportRSAKeySuccessWithNoBlob) {
1316 TEST_F(TpmUtilityTest, ImportRSAKeyParentNameFail) {
1333 TEST_F(TpmUtilityTest, ImportRSAKeyFail) {
1349 TEST_F(TpmUtilityTest, ImportRSAKeyParserFail) {
1366 TEST_F(TpmUtilityTest, CreateRSAKeyPairSuccess) {
1396 TEST_F(TpmUtilityTest, CreateRSAKeyPairDecryptKeySuccess) {
1414 TEST_F(TpmUtilityTest, CreateRSAKeyPairSignKeySuccess) {
1447 TEST_F(TpmUtilityTest, CreateRSAKeyPairBadDelegate) {
1454 TEST_F(TpmUtilityTest, CreateRSAKeyPairFailure) {
1466 TEST_F(TpmUtilityTest, CreateRSAKeyPairKeyParserFail) {
1476 TEST_F(TpmUtilityTest, CreateRSAKeyPairCreationParserFail) {
1487 TEST_F(TpmUtilityTest, LoadKeySuccess) {
1500 TEST_F(TpmUtilityTest, LoadKeyFailure) {
1509 TEST_F(TpmUtilityTest, LoadKeyBadDelegate) {
1516 TEST_F(TpmUtilityTest, LoadKeyParserFail) {
1525 TEST_F(TpmUtilityTest, SealedDataSuccess) {
1544 TEST_F(TpmUtilityTest, SealDataBadDelegate) {
1551 TEST_F(TpmUtilityTest, SealDataFailure) {
1561 TEST_F(TpmUtilityTest, SealDataParserFail) {
1570 TEST_F(TpmUtilityTest, UnsealDataSuccess) {
1595 TEST_F(TpmUtilityTest, UnsealDataBadDelegate) {
1602 TEST_F(TpmUtilityTest, UnsealDataLoadFail) {
1611 TEST_F(TpmUtilityTest, UnsealDataBadKeyName) {
1620 TEST_F(TpmUtilityTest, UnsealObjectFailure) {
1629 TEST_F(TpmUtilityTest, StartSessionSuccess) {
1636 TEST_F(TpmUtilityTest, StartSessionFailure) {
1643 TEST_F(TpmUtilityTest, GetPolicyDigestForPcrValueSuccess) {
1673 TEST_F(TpmUtilityTest, GetPolicyDigestForPcrValueSuccessWithPcrValue) {
1691 TEST_F(TpmUtilityTest, GetPolicyDigestForPcrValueBadSession) {
1701 TEST_F(TpmUtilityTest, GetPolicyDigestForPcrValuePcrReadFail) {
1710 TEST_F(TpmUtilityTest, GetPolicyDigestForPcrValueBadPcr) {
1720 TEST_F(TpmUtilityTest, GetPolicyDigestForPcrValueBadDigest) {
1730 TEST_F(TpmUtilityTest, DefineNVSpaceSuccess) {
1748 TEST_F(TpmUtilityTest, DefineNVSpaceBadLength) {
1754 TEST_F(TpmUtilityTest, DefineNVSpaceBadIndex) {
1760 TEST_F(TpmUtilityTest, DefineNVSpaceBadSession) {
1764 TEST_F(TpmUtilityTest, DefineNVSpaceFail) {
1773 TEST_F(TpmUtilityTest, DestroyNVSpaceSuccess) {
1782 TEST_F(TpmUtilityTest, DestroyNVSpaceBadIndex) {
1788 TEST_F(TpmUtilityTest, DestroyNVSpaceBadSession) {
1792 TEST_F(TpmUtilityTest, DestroyNVSpaceFailure) {
1802 TEST_F(TpmUtilityTest, LockNVSpaceSuccess) {
1814 TEST_F(TpmUtilityTest, LockNVSpaceBadIndex) {
1820 TEST_F(TpmUtilityTest, LockNVSpaceBadSession) {
1824 TEST_F(TpmUtilityTest, LockNVSpaceFailure) {
1833 TEST_F(TpmUtilityTest, WriteNVSpaceSuccess) {
1847 TEST_F(TpmUtilityTest, WriteNVSpaceBadSize) {
1854 TEST_F(TpmUtilityTest, WriteNVSpaceBadIndex) {
1860 TEST_F(TpmUtilityTest, WriteNVSpaceBadSessions) {
1865 TEST_F(TpmUtilityTest, WriteNVSpaceFailure) {
1876 TEST_F(TpmUtilityTest, ReadNVSpaceSuccess) {
1889 TEST_F(TpmUtilityTest, ReadNVSpaceBadReadLength) {
1896 TEST_F(TpmUtilityTest, ReadNVSpaceBadIndex) {
1903 TEST_F(TpmUtilityTest, ReadNVSpaceBadSession) {
1909 TEST_F(TpmUtilityTest, ReadNVSpaceFailure) {
1922 TEST_F(TpmUtilityTest, GetNVSpaceNameSuccess) {
1931 TEST_F(TpmUtilityTest, GetNVSpaceNameFailure) {
1939 TEST_F(TpmUtilityTest, GetNVSpacePublicAreaCachedSuccess) {
1948 TEST_F(TpmUtilityTest, GetNVSpacePublicAreaSuccess) {
1957 TEST_F(TpmUtilityTest, GetNVSpacePublicAreaFailure) {
1965 TEST_F(TpmUtilityTest, SetKnownPasswordSuccess) {
1973 TEST_F(TpmUtilityTest, SetKnownPasswordOwnershipDone) {
1977 TEST_F(TpmUtilityTest, SetKnownPasswordFailure) {
1985 TEST_F(TpmUtilityTest, RootKeysSuccess) {
1989 TEST_F(TpmUtilityTest, RootKeysHandleConsistency) {
1999 TEST_F(TpmUtilityTest, RootKeysCreateFailure) {
2005 TEST_F(TpmUtilityTest, RootKeysPersistFailure) {
2011 TEST_F(TpmUtilityTest, RootKeysAlreadyExist) {
2017 TEST_F(TpmUtilityTest, SaltingKeySuccess) {
2026 TEST_F(TpmUtilityTest, SaltingKeyConsistency) {
2036 TEST_F(TpmUtilityTest, SaltingKeyCreateFailure) {
2042 TEST_F(TpmUtilityTest, SaltingKeyLoadFailure) {
2048 TEST_F(TpmUtilityTest, SaltingKeyPersistFailure) {
2054 TEST_F(TpmUtilityTest, SaltingKeyAlreadyExists) {