Searched refs:securityLevel (Results 1 – 12 of 12) sorted by relevance
35 token.securityLevel = SecurityLevel::TRUSTED_ENVIRONMENT; in TEST()46 ASSERT_EQ(token.securityLevel, deserialized.value().securityLevel); in TEST()55 token.securityLevel = SecurityLevel::TRUSTED_ENVIRONMENT; in TEST()63 ASSERT_EQ(token.securityLevel, deserialized.value().securityLevel); in TEST()
37 IKeymasterDevice* CreateKeymasterDevice(SecurityLevel securityLevel) { in CreateKeymasterDevice() argument38 return new AndroidKeymaster41Device(securityLevel); in CreateKeymasterDevice()50 static_cast<keymaster_security_level_t>(verificationToken.securityLevel); in deviceLocked()
223 AndroidKeymaster4Device::AndroidKeymaster4Device(SecurityLevel securityLevel) in AndroidKeymaster4Device() argument227 static_cast<keymaster_security_level_t>(securityLevel)); in AndroidKeymaster4Device()232 securityLevel_(securityLevel) {}300 token.securityLevel = legacy_enum_conversion(response.token.security_level); in verifyAuthorization()577 IKeymasterDevice* CreateKeymasterDevice(SecurityLevel securityLevel) { in CreateKeymasterDevice() argument578 return new AndroidKeymaster4Device(securityLevel); in CreateKeymasterDevice()
70 SecurityLevel securityLevel = halVersion.securityLevel; in enumerateKeymasterDevices() local73 << toString(securityLevel); in enumerateKeymasterDevices()74 CHECK(static_cast<uint32_t>(securityLevel) < result.size()) in enumerateKeymasterDevices()77 auto& deviceSlot = result[securityLevel]; in enumerateKeymasterDevices()83 << "\" and security level: " << toString(securityLevel) in enumerateKeymasterDevices()
516 dev->halVersion().securityLevel == SecurityLevel::STRONGBOX) { in begin()797 SecurityLevel securityLevel = keymasterDevice_->halVersion().securityLevel; in generateKey() local801 bool consider_fallback = securityLevel == SecurityLevel::TRUSTED_ENVIRONMENT; in generateKey()819 keyBlob.setSecurityLevel(securityLevel); in generateKey()901 SecurityLevel securityLevel = keymasterDevice_->halVersion().securityLevel; in importKey() local905 bool consider_fallback = securityLevel == SecurityLevel::TRUSTED_ENVIRONMENT; in importKey()924 keyBlob.setSecurityLevel(securityLevel); in importKey()998 SecurityLevel securityLevel = keymasterDevice_->halVersion().securityLevel; in importWrappedKey() local1013 keyBlob.setSecurityLevel(securityLevel); in importWrappedKey()
82 std::shared_ptr<KeymasterWorker> getDevice(SecurityLevel securityLevel) const {83 return mKmDevices[securityLevel];
643 SecurityLevel securityLevel = flagsToSecurityLevel(flags); in generateKey() local644 auto dev = mKeyStore->getDevice(securityLevel); in generateKey()741 SecurityLevel securityLevel = flagsToSecurityLevel(flags); in importKey() local742 auto dev = mKeyStore->getDevice(securityLevel); in importKey()1303 SecurityLevel securityLevel = wrappingKeyBlob.getSecurityLevel(); in importWrappedKey() local1304 auto dev = mKeyStore->getDevice(securityLevel); in importWrappedKey()
65 explicit AndroidKeymaster41Device(SecurityLevel securityLevel) : super(securityLevel) {} in AndroidKeymaster41Device() argument178 IKeymasterDevice* CreateKeymasterDevice(SecurityLevel securityLevel);
52 explicit AndroidKeymaster4Device(SecurityLevel securityLevel);112 IKeymasterDevice* CreateKeymasterDevice(SecurityLevel securityLevel);
108 if (dev->halVersion().securityLevel != SecurityLevel::STRONGBOX) { in Keymaster()116 << " for encryption. Security level: " << toString(version.securityLevel) in Keymaster()228 return mDevice->halVersion().securityLevel != km::SecurityLevel::SOFTWARE; in isSecure()
280 aidlVerificationToken.securityLevel = ::android::hardware::keymaster::SecurityLevel::SOFTWARE; in getEntries()322 aidlVerificationToken.securityLevel = in getEntries()323 ::android::hardware::keymaster::SecurityLevel(token->securityLevel); in getEntries()
329 token.securityLevel = legacy_enum_conversion(response.token.security_level); in verifyAuthorization()