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

Commit 66efa861 authored by Shawn Willden's avatar Shawn Willden Committed by android-build-merger
Browse files

Handle software keymaster implementations.

am: 1404b6e8

Change-Id: Ia054c30244e989cf60e3abb81304ed9fed0b2fbf
parents 8cb97089 1404b6e8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1083,7 +1083,7 @@ class NewKeyGenerationTest : public KeymasterHidlTest {
        AuthorizationSet auths(keyCharacteristics.teeEnforced);
        auths.push_back(AuthorizationSet(keyCharacteristics.softwareEnforced));

        if (!SupportsSymmetric() && asymmetric) {
        if (IsSecure() && !SupportsSymmetric() && asymmetric) {
            EXPECT_TRUE(auths.Contains(TAG_ORIGIN, KeyOrigin::UNKNOWN));
        } else {
            EXPECT_TRUE(auths.Contains(TAG_ORIGIN, KeyOrigin::GENERATED));