Lines Matching refs:SecurityLevel
47 using ::android::hardware::keymaster::V4_0::SecurityLevel;
70 SecurityLevel securityLevel = halVersion.securityLevel; in enumerateKeymasterDevices()
108 auto softKeymaster = result[SecurityLevel::SOFTWARE]; in initializeKeymasters()
109 if (!result[SecurityLevel::TRUSTED_ENVIRONMENT]) { in initializeKeymasters()
112 if (softKeymaster) result[SecurityLevel::SOFTWARE] = softKeymaster; in initializeKeymasters()
113 if (result[SecurityLevel::SOFTWARE] && !result[SecurityLevel::TRUSTED_ENVIRONMENT]) { in initializeKeymasters()
116 result[SecurityLevel::TRUSTED_ENVIRONMENT] = result[SecurityLevel::SOFTWARE]; in initializeKeymasters()
117 result[SecurityLevel::SOFTWARE] = nullptr; in initializeKeymasters()
119 if (!result[SecurityLevel::SOFTWARE]) { in initializeKeymasters()
122 result[SecurityLevel::SOFTWARE] = new Keymaster3(fbdev, "Software"); in initializeKeymasters()
134 CHECK(kmDevices[SecurityLevel::SOFTWARE]) << "Missing software Keymaster device"; in main()
135 CHECK(kmDevices[SecurityLevel::TRUSTED_ENVIRONMENT]) in main()
140 auto halVersion = kmDevices[SecurityLevel::TRUSTED_ENVIRONMENT]->halVersion(); in main()
145 SecurityLevel minimalAllowedSecurityLevelForNewKeys = in main()
146 halVersion.majorVersion >= 2 ? SecurityLevel::TRUSTED_ENVIRONMENT : SecurityLevel::SOFTWARE; in main()