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

Commit e3e0cf47 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: Ia9ab6269235c03b55edf23bb3b2edce28e8f1afa
parents 64c9a48f ca76a750
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);
}

/*