commit | 915ce253a83e15d9bc9c88248a86d7cfdc473ad2 | [log] [tgz] |
---|---|---|
author | David Drysdale <drysdale@google.com> | Thu Oct 14 15:17:36 2021 +0100 |
committer | David Drysdale <drysdale@google.com> | Thu Oct 14 15:38:38 2021 +0100 |
tree | b93cc7b74a2cc31dd15b04777c7a4ce0329fee11 | |
parent | 0531c94771054fc513819cf3bb33fd99f65873b7 [diff] |
Specify KeyMint EC keys by curve not size Future addition of extra curves means that key size is not enough to identify the particular EC curve required. Use the EcCurve enum instead. Test: VtsHalRemotelyProvisionedComponentTargetTest Change-Id: Ia6b7d86a387cfc06db05e4ba6ff8f331e9c6345f
diff --git a/security/keymint/aidl/vts/functional/VtsRemotelyProvisionedComponentTests.cpp b/security/keymint/aidl/vts/functional/VtsRemotelyProvisionedComponentTests.cpp index 38f3586..76fb79b 100644 --- a/security/keymint/aidl/vts/functional/VtsRemotelyProvisionedComponentTests.cpp +++ b/security/keymint/aidl/vts/functional/VtsRemotelyProvisionedComponentTests.cpp
@@ -222,7 +222,7 @@ // Generate an ECDSA key that is attested by the generated P256 keypair. AuthorizationSet keyDesc = AuthorizationSetBuilder() .Authorization(TAG_NO_AUTH_REQUIRED) - .EcdsaSigningKey(256) + .EcdsaSigningKey(EcCurve::P_256) .AttestationChallenge("foo") .AttestationApplicationId("bar") .Digest(Digest::NONE)