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

Commit 4f250c10 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 am: 481915d7

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

Change-Id: I5fb2380de5306fa91162531efae78bc286a50702
parents 16aa087f 481915d7
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);
}

/*