commit | e3e0cf47023e95676cef3ec8258688f95916e1a4 | [log] [tgz] |
---|---|---|
author | David Drysdale <drysdale@google.com> | Thu Aug 19 17:41:57 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Aug 19 17:41:57 2021 +0000 |
tree | 305db05f85acd1f1cbfb4f3c9242b6c2469903f0 | |
parent | 64c9a48f07bd4a27b60e64de080e174cb95936bf [diff] | |
parent | ca76a750968efb61f61718acdf5e0e9a84bc6962 [diff] |
KeyMint VTS: add missing purpose/algo am: ca76a75096 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15624902 Change-Id: Ia9ab6269235c03b55edf23bb3b2edce28e8f1afa
diff --git a/security/keymint/aidl/vts/functional/KeyMintTest.cpp b/security/keymint/aidl/vts/functional/KeyMintTest.cpp index 5a87b83..22988c4 100644 --- a/security/keymint/aidl/vts/functional/KeyMintTest.cpp +++ b/security/keymint/aidl/vts/functional/KeyMintTest.cpp
@@ -1837,12 +1837,13 @@ if (SecLevel() == SecurityLevel::STRONGBOX) return; auto result = GenerateKey(AuthorizationSetBuilder() + .Authorization(TAG_ALGORITHM, Algorithm::EC) .Authorization(TAG_KEY_SIZE, 224) .Authorization(TAG_EC_CURVE, EcCurve::P_256) + .SigningKey() .Digest(Digest::NONE) .SetDefaultValidity()); - ASSERT_TRUE(result == ErrorCode::INVALID_ARGUMENT || - result == ErrorCode::UNSUPPORTED_ALGORITHM); + ASSERT_TRUE(result == ErrorCode::INVALID_ARGUMENT); } /*