KeyMint VTS: add missing purpose/algo

Test was producing an invalid set of parameters in a different way than
intended.

Bug: 197222749
Test: VtsAidlKeyMintTargetTest
Change-Id: I07f706fec81d91e8eee9c0561428142559c54f12
This commit is contained in:
David Drysdale
2021-08-18 16:45:50 +01:00
parent 1842c48ad1
commit ff81928532

View File

@@ -1843,12 +1843,13 @@ TEST_P(NewKeyGenerationTest, EcdsaMismatchKeySize) {
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);
}
/*