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

Commit 481915d7 authored by David Drysdale's avatar David Drysdale Committed by Automerger Merge Worker
Browse files

KeyMint VTS: add missing purpose/algo am: ca76a750 am: e3e0cf47

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15624902

Change-Id: Id486153197839a2aa3967a8ee0b70cd3d017de78
parents 11d2d578 e3e0cf47
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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);
}

/*