Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d1d45c44 authored by David Drysdale's avatar David Drysdale Committed by Seth Moore
Browse files

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
parent 89ec9c60
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1841,12 +1841,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);
}

/*