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

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

KeyMint VTS: add missing purpose/algo am: ca76a750

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

Change-Id: Ic4dba0c7a199709b7cd1f4d809df2ca2c871b21c
parents d3a0230a ca76a750
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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);
}

/*