Lines Matching refs:SecurityLevel
52 using ::android::hardware::keymaster::V4_0::SecurityLevel;
76 SecurityLevel securityLevel = halVersion.securityLevel; in enumerateKeymasterDevices()
114 auto softKeymaster = result[SecurityLevel::SOFTWARE]; in initializeKeymasters()
115 if (!result[SecurityLevel::TRUSTED_ENVIRONMENT]) { in initializeKeymasters()
118 if (softKeymaster) result[SecurityLevel::SOFTWARE] = softKeymaster; in initializeKeymasters()
119 if (result[SecurityLevel::SOFTWARE] && !result[SecurityLevel::TRUSTED_ENVIRONMENT]) { in initializeKeymasters()
122 result[SecurityLevel::TRUSTED_ENVIRONMENT] = result[SecurityLevel::SOFTWARE]; in initializeKeymasters()
123 result[SecurityLevel::SOFTWARE] = nullptr; in initializeKeymasters()
125 if (!result[SecurityLevel::SOFTWARE]) { in initializeKeymasters()
128 result[SecurityLevel::SOFTWARE] = new Keymaster3(fbdev, "Software"); in initializeKeymasters()
140 CHECK(kmDevices[SecurityLevel::SOFTWARE]) << "Missing software Keymaster device"; in main()
141 CHECK(kmDevices[SecurityLevel::TRUSTED_ENVIRONMENT]) in main()
146 auto halVersion = kmDevices[SecurityLevel::TRUSTED_ENVIRONMENT]->halVersion(); in main()
151 SecurityLevel minimalAllowedSecurityLevelForNewKeys = in main()
152 halVersion.majorVersion >= 2 ? SecurityLevel::TRUSTED_ENVIRONMENT : SecurityLevel::SOFTWARE; in main()