commit | 308916bfafd3acb45a89d82208c1b9b952059960 | [log] [tgz] |
---|---|---|
author | David Drysdale <drysdale@google.com> | Tue Jun 08 15:46:11 2021 +0100 |
committer | David Drysdale <drysdale@google.com> | Mon Jun 21 07:14:05 2021 +0100 |
tree | 551dd6c11860f3378c78caa91ffc65b06a19d135 | |
parent | 924643748b0551656ebae7485079256f1ed23398 [diff] [blame] |
KeyMint VTS: require curve for ECDSA keys The KeyMint AIDL spec requires that "Tag::EC_CURVE must be provided to generate an ECDSA key". Move the VTS tests to always create ECDSA keys by curve not key size. Bug: 188672564 Test: VtsAidlKeyMintTargetTest Merged-In: I33036387c243b21ab0ecd49221b7e7757598913e Change-Id: I33036387c243b21ab0ecd49221b7e7757598913e Ignore-AOSP-First: already merged in aosp/master
diff --git a/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.h b/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.h index c8d6f11..d592d36 100644 --- a/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.h +++ b/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.h
@@ -255,7 +255,7 @@ /* ECDSA */ KeyData ecdsaKeyData; AuthorizationSetBuilder ecdsaBuilder = AuthorizationSetBuilder() - .EcdsaSigningKey(256) + .EcdsaSigningKey(EcCurve::P_256) .Authorization(tagToTest) .Digest(Digest::SHA_2_256) .Authorization(TAG_NO_AUTH_REQUIRED)