mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:23:37 +00:00
KeyMint VTS: add missing purpose/algo
Test was producing an invalid set of parameters in a different way than intended. Bug: 197222749 Test: VtsAidlKeyMintTargetTest Merged-In: I07f706fec81d91e8eee9c0561428142559c54f12 Change-Id: I07f706fec81d91e8eee9c0561428142559c54f12 Ignore-AOSP-First: this is a manual cross-merge
This commit is contained in:
@@ -1837,12 +1837,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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user