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

Commit 1404b6e8 authored by Shawn Willden's avatar Shawn Willden
Browse files

Handle software keymaster implementations.

Test: VtsHalKeymasterV3_0TargetTest
Change-Id: I0ca923fab3e312c576abc2f51f6dd28482176db7
parent b4e998e8
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));