keymaster4.0 VTS测试用例
VTS单模块测试:
./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/HmacKeySharingTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/VerificationTokenTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/VerificationOperationsTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ExportKeyTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportKeyTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportWrappedKeyTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/MaxOperationsTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/AddEntropyTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/AttestationTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/KeyDeletionTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/UpgradeKeyTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ClearOperationsTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/TransportLimitTest*/0_default
VTS单用例测试:
如:
./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaGetKeyCharacteristicsRequiresCorrectAppIdAppData/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaUseRequiresCorrectAppIdAppData/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.NoUserConfirmation/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.EcGetKeyCharacteristicsRequiresCorrectAppIdAppData/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.EcUseRequiresCorrectAppIdAppData/0_default
VTS测试包整测:
单测命令集合:
./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/HmacKeySharingTest.GetParameters/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/HmacKeySharingTest.ComputeSharedHmac/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/HmacKeySharingTest.ComputeSharedHmacCorruptNonce/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/HmacKeySharingTest.ComputeSharedHmacCorruptSeed/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/VerificationTokenTest.TestCreation/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/VerificationTokenTest.MacChangesOnChangingTimestamp/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.Rsa/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.NoInvalidRsaSizes/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.RsaNoDefaultSize/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.Ecdsa/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.EcdsaDefaultSize/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.EcdsaInvalidSize/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.EcdsaMismatchKeySize/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.EcdsaAllValidSizes/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.EcdsaAllValidCurves/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.Hmac/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.HmacCheckKeySizes/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.HmacCheckMinMacLengths/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.HmacMultipleDigests/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.HmacDigestNone/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaGetKeyCharacteristicsRequiresCorrectAppIdAppData/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaUseRequiresCorrectAppIdAppData/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaPssSha256Success/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaPaddingNoneDoesNotAllowOther/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.NoUserConfirmation/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaPkcs1Sha256Success/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaPkcs1NoDigestSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaPkcs1NoDigestTooLong/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaPssSha512TooSmallKey/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaNoPaddingTooLong/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaAbort/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaUnsupportedPadding/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaNoDigest/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaNoPadding/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaTooShortMessage/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaSignWithEncryptionKey/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaSignTooLargeMessage/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.EcdsaAllSizesAndHashes/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.EcdsaAllCurves/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.EcdsaNoDigestHugeData/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.EcGetKeyCharacteristicsRequiresCorrectAppIdAppData/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.EcUseRequiresCorrectAppIdAppData/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.AesEcbSign/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.HmacAllDigests/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.HmacSha256TooLargeMacLength/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.HmacSha256TooSmallMacLength/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.HmacRfc4231TestCase3/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.HmacRfc4231TestCase5/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/VerificationOperationsTest.RsaSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/VerificationOperationsTest.RsaAllPaddingsAndDigests/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/VerificationOperationsTest.EcdsaAllDigestsAndCurves/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/VerificationOperationsTest.HmacSigningKeyCannotVerify/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ExportKeyTest.RsaUnsupportedKeyFormat/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ExportKeyTest.RsaCorruptedKeyBlob/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ExportKeyTest.EcCorruptedKeyBlob/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ExportKeyTest.AesKeyUnexportable/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportKeyTest.RsaSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportKeyTest.RsaKeySizeMismatch/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportKeyTest.RsaPublicExponentMismatch/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportKeyTest.EcdsaSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportKeyTest.EcdsaP256RFC5915Success/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportKeyTest.EcdsaP256SEC1Success/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportKeyTest.Ecdsa521Success/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportKeyTest.EcdsaSizeMismatch/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportKeyTest.EcdsaCurveMismatch/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportKeyTest.AesSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportKeyTest.HmacKeySuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportWrappedKeyTest.Success/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportWrappedKeyTest.SuccessMasked/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportWrappedKeyTest.WrongMask/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportWrappedKeyTest.WrongPurpose/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.RsaNoPaddingSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.RsaNoPaddingShortMessage/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.RsaNoPaddingTooLong/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.RsaNoPaddingTooLarge/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.RsaOaepSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.RsaOaepInvalidDigest/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.RsaOaepDecryptWithWrongDigest/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.RsaOaepTooLarge/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.RsaPkcs1Success/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.RsaPkcs1TooLarge/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.EcdsaEncrypt/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.HmacEncrypt/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesEcbRoundTripSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesWrongMode/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesWrongPurpose/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesEcbNoPaddingWrongInputSize/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesEcbPkcs7Padding/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesEcbWrongPadding/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesEcbPkcs7PaddingCorrupted/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesCtrRoundTripSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesIncremental/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesCtrSp80038aTestVector/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesCtrIncompatiblePaddingMode/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesCtrInvalidCallerNonce/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesCbcRoundTripSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesCallerNonce/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesCallerNonceProhibited/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesGcmRoundTripSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesGcmRoundTripWithDelaySuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesGcmDifferentNonces/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesGcmTooShortTag/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesGcmTooShortTagOnDecrypt/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesGcmCorruptKey/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesGcmAadNoData/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesGcmMultiPartAad/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesGcmAadOutOfOrder/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesGcmBadAad/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesGcmWrongNonce/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesGcmCorruptTag/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesEcbRoundTripSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesEcbNotAuthorized/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesEcbPkcs7Padding/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesEcbNoPaddingKeyWithPkcs7Padding/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesEcbPkcs7PaddingCorrupted/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesTestVector/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesCbcRoundTripSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesCallerIv/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesCallerNonceProhibited/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesCbcNotAuthorized/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesCbcNoPaddingWrongInputSize/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesCbcPkcs7Padding/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesCbcNoPaddingKeyWithPkcs7Padding/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesCbcPkcs7PaddingCorrupted/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesCbcIncrementalNoPadding/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/MaxOperationsTest.TestLimitAes/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/MaxOperationsTest.TestLimitRsa/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/AddEntropyTest.AddEntropy/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/AddEntropyTest.AddEmptyEntropy/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/AddEntropyTest.AddLargeEntropy/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/AttestationTest.RsaAttestation/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/AttestationTest.RsaAttestationRequiresAppId/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/AttestationTest.EcAttestation/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/AttestationTest.EcAttestationRequiresAttestationAppId/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/AttestationTest.AttestationApplicationIDLengthProperlyEncoded/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/AttestationTest.AesAttestation/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/AttestationTest.HmacAttestation/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/KeyDeletionTest.DeleteKey/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/KeyDeletionTest.DeleteInvalidKey/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/KeyDeletionTest.DeleteAllKeys/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/UpgradeKeyTest.UpgradeKey/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ClearOperationsTest.TooManyOperations/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/TransportLimitTest.LargeFinishInput/0_default
附一份3.0的测试打印:
# ./VtsHalKeymasterV3_0TargetTest [==========] Running 108 tests from 12 test suites. [----------] Global test environment set-up. [----------] 1 test from PerInstance/KeymasterVersionTest [ RUN ] PerInstance/KeymasterVersionTest.SensibleFeatures/0_default [ OK ] PerInstance/KeymasterVersionTest.SensibleFeatures/0_default (43 ms) [----------] 1 test from PerInstance/KeymasterVersionTest (43 ms total) [----------] 13 tests from PerInstance/NewKeyGenerationTest [ RUN ] PerInstance/NewKeyGenerationTest.Rsa/0_default [ OK ] PerInstance/NewKeyGenerationTest.Rsa/0_default (246243 ms) [ RUN ] PerInstance/NewKeyGenerationTest.RsaNoDefaultSize/0_default [ OK ] PerInstance/NewKeyGenerationTest.RsaNoDefaultSize/0_default (13 ms) [ RUN ] PerInstance/NewKeyGenerationTest.Ecdsa/0_default [ OK ] PerInstance/NewKeyGenerationTest.Ecdsa/0_default (2608 ms) [ RUN ] PerInstance/NewKeyGenerationTest.EcdsaDefaultSize/0_default [ OK ] PerInstance/NewKeyGenerationTest.EcdsaDefaultSize/0_default (10 ms) [ RUN ] PerInstance/NewKeyGenerationTest.EcdsaInvalidSize/0_default [ OK ] PerInstance/NewKeyGenerationTest.EcdsaInvalidSize/0_default (17 ms) [ RUN ] PerInstance/NewKeyGenerationTest.EcdsaMismatchKeySize/0_default [ OK ] PerInstance/NewKeyGenerationTest.EcdsaMismatchKeySize/0_default (14 ms) [ RUN ] PerInstance/NewKeyGenerationTest.EcdsaAllValidSizes/0_default [ OK ] PerInstance/NewKeyGenerationTest.EcdsaAllValidSizes/0_default (2603 ms) [ RUN ] PerInstance/NewKeyGenerationTest.EcdsaAllValidCurves/0_default [ OK ] PerInstance/NewKeyGenerationTest.EcdsaAllValidCurves/0_default (2605 ms) [ RUN ] PerInstance/NewKeyGenerationTest.Hmac/0_default [ OK ] PerInstance/NewKeyGenerationTest.Hmac/0_default (41 ms) [ RUN ] PerInstance/NewKeyGenerationTest.HmacCheckKeySizes/0_default [ OK ] PerInstance/NewKeyGenerationTest.HmacCheckKeySizes/0_default (875 ms) [ RUN ] PerInstance/NewKeyGenerationTest.HmacCheckMinMacLengths/0_default [ OK ] PerInstance/NewKeyGenerationTest.HmacCheckMinMacLengths/0_default (444 ms) [ RUN ] PerInstance/NewKeyGenerationTest.HmacMultipleDigests/0_default [ OK ] PerInstance/NewKeyGenerationTest.HmacMultipleDigests/0_default (13 ms) [ RUN ] PerInstance/NewKeyGenerationTest.HmacDigestNone/0_default [ OK ] PerInstance/NewKeyGenerationTest.HmacDigestNone/0_default (21 ms) [----------] 13 tests from PerInstance/NewKeyGenerationTest (255510 ms total) [----------] 1 test from PerInstance/GetKeyCharacteristicsTest [ RUN ] PerInstance/GetKeyCharacteristicsTest.SimpleRsa/0_default [ OK ] PerInstance/GetKeyCharacteristicsTest.SimpleRsa/0_default (1032 ms) [----------] 1 test from PerInstance/GetKeyCharacteristicsTest (1032 ms total) [----------] 26 tests from PerInstance/SigningOperationsTest [ RUN ] PerInstance/SigningOperationsTest.RsaSuccess/0_default [ OK ] PerInstance/SigningOperationsTest.RsaSuccess/0_default (1091 ms) [ RUN ] PerInstance/SigningOperationsTest.RsaPssSha256Success/0_default [ OK ] PerInstance/SigningOperationsTest.RsaPssSha256Success/0_default (1580 ms) [ RUN ] PerInstance/SigningOperationsTest.RsaPaddingNoneDoesNotAllowOther/0_default [ OK ] PerInstance/SigningOperationsTest.RsaPaddingNoneDoesNotAllowOther/0_default (1238 ms) [ RUN ] PerInstance/SigningOperationsTest.RsaPkcs1Sha256Success/0_default [ OK ] PerInstance/SigningOperationsTest.RsaPkcs1Sha256Success/0_default (1097 ms) [ RUN ] PerInstance/SigningOperationsTest.RsaPkcs1NoDigestSuccess/0_default [ OK ] PerInstance/SigningOperationsTest.RsaPkcs1NoDigestSuccess/0_default (1534 ms) [ RUN ] PerInstance/SigningOperationsTest.RsaPkcs1NoDigestTooLong/0_default [ OK ] PerInstance/SigningOperationsTest.RsaPkcs1NoDigestTooLong/0_default (792 ms) [ RUN ] PerInstance/SigningOperationsTest.RsaPssSha512TooSmallKey/0_default [ OK ] PerInstance/SigningOperationsTest.RsaPssSha512TooSmallKey/0_default (492 ms) [ RUN ] PerInstance/SigningOperationsTest.RsaNoPaddingTooLong/0_default [ OK ] PerInstance/SigningOperationsTest.RsaNoPaddingTooLong/0_default (2708 ms) [ RUN ] PerInstance/SigningOperationsTest.RsaAbort/0_default [ OK ] PerInstance/SigningOperationsTest.RsaAbort/0_default (2875 ms) [ RUN ] PerInstance/SigningOperationsTest.RsaUnsupportedPadding/0_default [ OK ] PerInstance/SigningOperationsTest.RsaUnsupportedPadding/0_default (1429 ms) [ RUN ] PerInstance/SigningOperationsTest.RsaNoDigest/0_default [ OK ] PerInstance/SigningOperationsTest.RsaNoDigest/0_default (1736 ms) [ RUN ] PerInstance/SigningOperationsTest.RsaNoPadding/0_default [ OK ] PerInstance/SigningOperationsTest.RsaNoPadding/0_default (1347 ms) [ RUN ] PerInstance/SigningOperationsTest.RsaTooShortMessage/0_default [ OK ] PerInstance/SigningOperationsTest.RsaTooShortMessage/0_default (2993 ms) [ RUN ] PerInstance/SigningOperationsTest.RsaSignWithEncryptionKey/0_default [ OK ] PerInstance/SigningOperationsTest.RsaSignWithEncryptionKey/0_default (1431 ms) [ RUN ] PerInstance/SigningOperationsTest.RsaSignTooLargeMessage/0_default [ OK ] PerInstance/SigningOperationsTest.RsaSignTooLargeMessage/0_default (1815 ms) [ RUN ] PerInstance/SigningOperationsTest.EcdsaAllSizesAndHashes/0_default [ OK ] PerInstance/SigningOperationsTest.EcdsaAllSizesAndHashes/0_default (26115 ms) [ RUN ] PerInstance/SigningOperationsTest.EcdsaAllCurves/0_default [ OK ] PerInstance/SigningOperationsTest.EcdsaAllCurves/0_default (5213 ms) [ RUN ] PerInstance/SigningOperationsTest.EcdsaNoDigestHugeData/0_default [ OK ] PerInstance/SigningOperationsTest.EcdsaNoDigestHugeData/0_default (613 ms) [ RUN ] PerInstance/SigningOperationsTest.AesEcbSign/0_default [ OK ] PerInstance/SigningOperationsTest.AesEcbSign/0_default (31 ms) [ RUN ] PerInstance/SigningOperationsTest.HmacAllDigests/0_default [ OK ] PerInstance/SigningOperationsTest.HmacAllDigests/0_default (47 ms) [ RUN ] PerInstance/SigningOperationsTest.HmacSha256TooLargeMacLength/0_default [ OK ] PerInstance/SigningOperationsTest.HmacSha256TooLargeMacLength/0_default (17 ms) [ RUN ] PerInstance/SigningOperationsTest.HmacSha256TooSmallMacLength/0_default [ OK ] PerInstance/SigningOperationsTest.HmacSha256TooSmallMacLength/0_default (17 ms) [ RUN ] PerInstance/SigningOperationsTest.HmacRfc4231TestCase3/0_default [ OK ] PerInstance/SigningOperationsTest.HmacRfc4231TestCase3/0_default (35 ms) [ RUN ] PerInstance/SigningOperationsTest.HmacRfc4231TestCase5/0_default [ OK ] PerInstance/SigningOperationsTest.HmacRfc4231TestCase5/0_default (36 ms) [ RUN ] PerInstance/SigningOperationsTest.HmacRfc4231TestCase6/0_default [ OK ] PerInstance/SigningOperationsTest.HmacRfc4231TestCase6/0_default (35 ms) [ RUN ] PerInstance/SigningOperationsTest.HmacRfc4231TestCase7/0_default [ OK ] PerInstance/SigningOperationsTest.HmacRfc4231TestCase7/0_default (36 ms) [----------] 26 tests from PerInstance/SigningOperationsTest (56357 ms total) [----------] 4 tests from PerInstance/VerificationOperationsTest [ RUN ] PerInstance/VerificationOperationsTest.RsaSuccess/0_default [ OK ] PerInstance/VerificationOperationsTest.RsaSuccess/0_default (2045 ms) [ RUN ] PerInstance/VerificationOperationsTest.RsaAllPaddingsAndDigests/0_default [ OK ] PerInstance/VerificationOperationsTest.RsaAllPaddingsAndDigests/0_default (20005 ms) [ RUN ] PerInstance/VerificationOperationsTest.EcdsaAllDigestsAndCurves/0_default [ OK ] PerInstance/VerificationOperationsTest.EcdsaAllDigestsAndCurves/0_default (49130 ms) [ RUN ] PerInstance/VerificationOperationsTest.HmacSigningKeyCannotVerify/0_default [ OK ] PerInstance/VerificationOperationsTest.HmacSigningKeyCannotVerify/0_default (32 ms) [----------] 4 tests from PerInstance/VerificationOperationsTest (71214 ms total) [----------] 4 tests from PerInstance/ExportKeyTest [ RUN ] PerInstance/ExportKeyTest.RsaUnsupportedKeyFormat/0_default [ OK ] PerInstance/ExportKeyTest.RsaUnsupportedKeyFormat/0_default (1266 ms) [ RUN ] PerInstance/ExportKeyTest.RsaCorruptedKeyBlob/0_default [ OK ] PerInstance/ExportKeyTest.RsaCorruptedKeyBlob/0_default (71968 ms) [ RUN ] PerInstance/ExportKeyTest.EcCorruptedKeyBlob/0_default [ OK ] PerInstance/ExportKeyTest.EcCorruptedKeyBlob/0_default (20379 ms) [ RUN ] PerInstance/ExportKeyTest.AesKeyUnexportable/0_default [ OK ] PerInstance/ExportKeyTest.AesKeyUnexportable/0_default (31 ms) [----------] 4 tests from PerInstance/ExportKeyTest (93644 ms total) [----------] 9 tests from PerInstance/ImportKeyTest [ RUN ] PerInstance/ImportKeyTest.RsaSuccess/0_default [ OK ] PerInstance/ImportKeyTest.RsaSuccess/0_default (475 ms) [ RUN ] PerInstance/ImportKeyTest.RsaKeySizeMismatch/0_default [ OK ] PerInstance/ImportKeyTest.RsaKeySizeMismatch/0_default (17 ms) [ RUN ] PerInstance/ImportKeyTest.RsaPublicExponentMismatch/0_default [ OK ] PerInstance/ImportKeyTest.RsaPublicExponentMismatch/0_default (21 ms) [ RUN ] PerInstance/ImportKeyTest.EcdsaSuccess/0_default [ OK ] PerInstance/ImportKeyTest.EcdsaSuccess/0_default (544 ms) [ RUN ] PerInstance/ImportKeyTest.Ecdsa521Success/0_default [ OK ] PerInstance/ImportKeyTest.Ecdsa521Success/0_default (2182 ms) [ RUN ] PerInstance/ImportKeyTest.EcdsaSizeMismatch/0_default [ OK ] PerInstance/ImportKeyTest.EcdsaSizeMismatch/0_default (12 ms) [ RUN ] PerInstance/ImportKeyTest.EcdsaCurveMismatch/0_default [ OK ] PerInstance/ImportKeyTest.EcdsaCurveMismatch/0_default (12 ms) [ RUN ] PerInstance/ImportKeyTest.AesSuccess/0_default [ OK ] PerInstance/ImportKeyTest.AesSuccess/0_default (14 ms) [ RUN ] PerInstance/ImportKeyTest.HmacKeySuccess/0_default [ OK ] PerInstance/ImportKeyTest.HmacKeySuccess/0_default (15 ms) [----------] 9 tests from PerInstance/ImportKeyTest (3294 ms total) [----------] 36 tests from PerInstance/EncryptionOperationsTest [ RUN ] PerInstance/EncryptionOperationsTest.RsaNoPaddingSuccess/0_default [ OK ] PerInstance/EncryptionOperationsTest.RsaNoPaddingSuccess/0_default (925 ms) [ RUN ] PerInstance/EncryptionOperationsTest.RsaNoPaddingShortMessage/0_default [ OK ] PerInstance/EncryptionOperationsTest.RsaNoPaddingShortMessage/0_default (3418 ms) [ RUN ] PerInstance/EncryptionOperationsTest.RsaNoPaddingTooLong/0_default [ OK ] PerInstance/EncryptionOperationsTest.RsaNoPaddingTooLong/0_default (838 ms) [ RUN ] PerInstance/EncryptionOperationsTest.RsaNoPaddingTooLarge/0_default [ OK ] PerInstance/EncryptionOperationsTest.RsaNoPaddingTooLarge/0_default (1657 ms) [ RUN ] PerInstance/EncryptionOperationsTest.RsaOaepSuccess/0_default [ OK ] PerInstance/EncryptionOperationsTest.RsaOaepSuccess/0_default (24169 ms) [ RUN ] PerInstance/EncryptionOperationsTest.RsaOaepInvalidDigest/0_default [ OK ] PerInstance/EncryptionOperationsTest.RsaOaepInvalidDigest/0_default (1923 ms) [ RUN ] PerInstance/EncryptionOperationsTest.RsaOaepDecryptWithWrongDigest/0_default [ OK ] PerInstance/EncryptionOperationsTest.RsaOaepDecryptWithWrongDigest/0_default (1343 ms) [ RUN ] PerInstance/EncryptionOperationsTest.RsaOaepTooLarge/0_default [ OK ] PerInstance/EncryptionOperationsTest.RsaOaepTooLarge/0_default (1080 ms) [ RUN ] PerInstance/EncryptionOperationsTest.RsaPkcs1Success/0_default [ OK ] PerInstance/EncryptionOperationsTest.RsaPkcs1Success/0_default (1569 ms) [ RUN ] PerInstance/EncryptionOperationsTest.RsaPkcs1TooLarge/0_default [ OK ] PerInstance/EncryptionOperationsTest.RsaPkcs1TooLarge/0_default (626 ms) [ RUN ] PerInstance/EncryptionOperationsTest.EcdsaEncrypt/0_default [ OK ] PerInstance/EncryptionOperationsTest.EcdsaEncrypt/0_default (336 ms) [ RUN ] PerInstance/EncryptionOperationsTest.HmacEncrypt/0_default [ OK ] PerInstance/EncryptionOperationsTest.HmacEncrypt/0_default (30 ms) [ RUN ] PerInstance/EncryptionOperationsTest.AesEcbRoundTripSuccess/0_default [ OK ] PerInstance/EncryptionOperationsTest.AesEcbRoundTripSuccess/0_default (20 ms) [ RUN ] PerInstance/EncryptionOperationsTest.AesWrongMode/0_default [ OK ] PerInstance/EncryptionOperationsTest.AesWrongMode/0_default (17 ms) [ RUN ] PerInstance/EncryptionOperationsTest.AesEcbNoPaddingWrongInputSize/0_default [ OK ] PerInstance/EncryptionOperationsTest.AesEcbNoPaddingWrongInputSize/0_default (30 ms) [ RUN ] PerInstance/EncryptionOperationsTest.AesEcbPkcs7Padding/0_default [ OK ] PerInstance/EncryptionOperationsTest.AesEcbPkcs7Padding/0_default (248 ms) [ RUN ] PerInstance/EncryptionOperationsTest.AesEcbWrongPadding/0_default [ OK ] PerInstance/EncryptionOperationsTest.AesEcbWrongPadding/0_default (278 ms) [ RUN ] PerInstance/EncryptionOperationsTest.AesEcbPkcs7PaddingCorrupted/0_default [ OK ] PerInstance/EncryptionOperationsTest.AesEcbPkcs7PaddingCorrupted/0_default (31 ms) [ RUN ] PerInstance/EncryptionOperationsTest.AesCtrRoundTripSuccess/0_default [ OK ] PerInstance/EncryptionOperationsTest.AesCtrRoundTripSuccess/0_default (31 ms) [ RUN ] PerInstance/EncryptionOperationsTest.AesIncremental/0_default [ OK ] PerInstance/EncryptionOperationsTest.AesIncremental/0_default (30125 ms) [ RUN ] PerInstance/EncryptionOperationsTest.AesCtrSp80038aTestVector/0_default [ OK ] PerInstance/EncryptionOperationsTest.AesCtrSp80038aTestVector/0_default (25 ms) [ RUN ] PerInstance/EncryptionOperationsTest.AesCtrIncompatiblePaddingMode/0_default [ OK ] PerInstance/EncryptionOperationsTest.AesCtrIncompatiblePaddingMode/0_default (17 ms) [ RUN ] PerInstance/EncryptionOperationsTest.AesCtrInvalidCallerNonce/0_default [ OK ] PerInstance/EncryptionOperationsTest.AesCtrInvalidCallerNonce/0_default (34 ms) [ RUN ] PerInstance/EncryptionOperationsTest.AesCbcRoundTripSuccess/0_default [ OK ] PerInstance/EncryptionOperationsTest.AesCbcRoundTripSuccess/0_default (20 ms) [ RUN ] PerInstance/EncryptionOperationsTest.AesCallerNonce/0_default [ OK ] PerInstance/EncryptionOperationsTest.AesCallerNonce/0_default (27 ms) [ RUN ] PerInstance/EncryptionOperationsTest.AesCallerNonceProhibited/0_default [ OK ] PerInstance/EncryptionOperationsTest.AesCallerNonceProhibited/0_default (24 ms) [ RUN ] PerInstance/EncryptionOperationsTest.AesGcmRoundTripSuccess/0_default [ OK ] PerInstance/EncryptionOperationsTest.AesGcmRoundTripSuccess/0_default (18 ms) [ RUN ] PerInstance/EncryptionOperationsTest.AesGcmTooShortTag/0_default [ OK ] PerInstance/EncryptionOperationsTest.AesGcmTooShortTag/0_default (17 ms) [ RUN ] PerInstance/EncryptionOperationsTest.AesGcmTooShortTagOnDecrypt/0_default [ OK ] PerInstance/EncryptionOperationsTest.AesGcmTooShortTagOnDecrypt/0_default (22 ms) [ RUN ] PerInstance/EncryptionOperationsTest.AesGcmCorruptKey/0_default [ OK ] PerInstance/EncryptionOperationsTest.AesGcmCorruptKey/0_default (33 ms) [ RUN ] PerInstance/EncryptionOperationsTest.AesGcmAadNoData/0_default [ OK ] PerInstance/EncryptionOperationsTest.AesGcmAadNoData/0_default (16 ms) [ RUN ] PerInstance/EncryptionOperationsTest.AesGcmMultiPartAad/0_default [ OK ] PerInstance/EncryptionOperationsTest.AesGcmMultiPartAad/0_default (19 ms) [ RUN ] PerInstance/EncryptionOperationsTest.AesGcmAadOutOfOrder/0_default [ OK ] PerInstance/EncryptionOperationsTest.AesGcmAadOutOfOrder/0_default (33 ms) [ RUN ] PerInstance/EncryptionOperationsTest.AesGcmBadAad/0_default [ OK ] PerInstance/EncryptionOperationsTest.AesGcmBadAad/0_default (29 ms) [ RUN ] PerInstance/EncryptionOperationsTest.AesGcmWrongNonce/0_default [ OK ] PerInstance/EncryptionOperationsTest.AesGcmWrongNonce/0_default (29 ms) [ RUN ] PerInstance/EncryptionOperationsTest.AesGcmCorruptTag/0_default [ OK ] PerInstance/EncryptionOperationsTest.AesGcmCorruptTag/0_default (30 ms) [----------] 36 tests from PerInstance/EncryptionOperationsTest (69093 ms total) [----------] 2 tests from PerInstance/MaxOperationsTest [ RUN ] PerInstance/MaxOperationsTest.TestLimitAes/0_default [ OK ] PerInstance/MaxOperationsTest.TestLimitAes/0_default (27 ms) [ RUN ] PerInstance/MaxOperationsTest.TestLimitRsa/0_default [ OK ] PerInstance/MaxOperationsTest.TestLimitRsa/0_default (3345 ms) [----------] 2 tests from PerInstance/MaxOperationsTest (3372 ms total) [----------] 3 tests from PerInstance/AddEntropyTest [ RUN ] PerInstance/AddEntropyTest.AddEntropy/0_default [ OK ] PerInstance/AddEntropyTest.AddEntropy/0_default (5 ms) [ RUN ] PerInstance/AddEntropyTest.AddEmptyEntropy/0_default [ OK ] PerInstance/AddEntropyTest.AddEmptyEntropy/0_default (3 ms) [ RUN ] PerInstance/AddEntropyTest.AddLargeEntropy/0_default [ OK ] PerInstance/AddEntropyTest.AddLargeEntropy/0_default (5 ms) [----------] 3 tests from PerInstance/AddEntropyTest (13 ms total) [----------] 6 tests from PerInstance/AttestationTest [ RUN ] PerInstance/AttestationTest.RsaAttestation/0_default [ OK ] PerInstance/AttestationTest.RsaAttestation/0_default (3823 ms) [ RUN ] PerInstance/AttestationTest.RsaAttestationRequiresAppId/0_default [ OK ] PerInstance/AttestationTest.RsaAttestationRequiresAppId/0_default (634 ms) [ RUN ] PerInstance/AttestationTest.EcAttestation/0_default [ OK ] PerInstance/AttestationTest.EcAttestation/0_default (732 ms) [ RUN ] PerInstance/AttestationTest.EcAttestationRequiresAttestationAppId/0_default [ OK ] PerInstance/AttestationTest.EcAttestationRequiresAttestationAppId/0_default (317 ms) [ RUN ] PerInstance/AttestationTest.AesAttestation/0_default [ OK ] PerInstance/AttestationTest.AesAttestation/0_default (19 ms) [ RUN ] PerInstance/AttestationTest.HmacAttestation/0_default [ OK ] PerInstance/AttestationTest.HmacAttestation/0_default (19 ms) [----------] 6 tests from PerInstance/AttestationTest (5544 ms total) [----------] 3 tests from PerInstance/KeyDeletionTest [ RUN ] PerInstance/KeyDeletionTest.DeleteKey/0_default [ OK ] PerInstance/KeyDeletionTest.DeleteKey/0_default (612 ms) [ RUN ] PerInstance/KeyDeletionTest.DeleteInvalidKey/0_default [ OK ] PerInstance/KeyDeletionTest.DeleteInvalidKey/0_default (1409 ms) [ RUN ] PerInstance/KeyDeletionTest.DeleteAllKeys/0_default [ OK ] PerInstance/KeyDeletionTest.DeleteAllKeys/0_default (3 ms) [----------] 3 tests from PerInstance/KeyDeletionTest (2024 ms total) [----------] Global test environment tear-down [==========] 108 tests from 12 test suites ran. (561140 ms total) [ PASSED ] 108 tests.