Home
last modified time | relevance | path

Searched refs:securityLevel (Results 1 – 12 of 12) sorted by relevance

/system/security/keystore/tests/
Dverification_token_seralization_test.cpp35 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()
/system/keymaster/ng/
DAndroidKeymaster41Device.cpp37 IKeymasterDevice* CreateKeymasterDevice(SecurityLevel securityLevel) { in CreateKeymasterDevice() argument
38 return new AndroidKeymaster41Device(securityLevel); in CreateKeymasterDevice()
50 static_cast<keymaster_security_level_t>(verificationToken.securityLevel); in deviceLocked()
DAndroidKeymaster4Device.cpp223 AndroidKeymaster4Device::AndroidKeymaster4Device(SecurityLevel securityLevel) in AndroidKeymaster4Device() argument
227 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() argument
578 return new AndroidKeymaster4Device(securityLevel); in CreateKeymasterDevice()
/system/security/keystore/
Dkeystore_main.cpp70 SecurityLevel securityLevel = halVersion.securityLevel; in enumerateKeymasterDevices() local
73 << 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()
Dkeymaster_worker.cpp516 dev->halVersion().securityLevel == SecurityLevel::STRONGBOX) { in begin()
797 SecurityLevel securityLevel = keymasterDevice_->halVersion().securityLevel; in generateKey() local
801 bool consider_fallback = securityLevel == SecurityLevel::TRUSTED_ENVIRONMENT; in generateKey()
819 keyBlob.setSecurityLevel(securityLevel); in generateKey()
901 SecurityLevel securityLevel = keymasterDevice_->halVersion().securityLevel; in importKey() local
905 bool consider_fallback = securityLevel == SecurityLevel::TRUSTED_ENVIRONMENT; in importKey()
924 keyBlob.setSecurityLevel(securityLevel); in importKey()
998 SecurityLevel securityLevel = keymasterDevice_->halVersion().securityLevel; in importWrappedKey() local
1013 keyBlob.setSecurityLevel(securityLevel); in importWrappedKey()
DKeyStore.h82 std::shared_ptr<KeymasterWorker> getDevice(SecurityLevel securityLevel) const {
83 return mKmDevices[securityLevel];
Dkey_store_service.cpp643 SecurityLevel securityLevel = flagsToSecurityLevel(flags); in generateKey() local
644 auto dev = mKeyStore->getDevice(securityLevel); in generateKey()
741 SecurityLevel securityLevel = flagsToSecurityLevel(flags); in importKey() local
742 auto dev = mKeyStore->getDevice(securityLevel); in importKey()
1303 SecurityLevel securityLevel = wrappingKeyBlob.getSecurityLevel(); in importWrappedKey() local
1304 auto dev = mKeyStore->getDevice(securityLevel); in importWrappedKey()
/system/keymaster/ng/include/
DAndroidKeymaster41Device.h65 explicit AndroidKeymaster41Device(SecurityLevel securityLevel) : super(securityLevel) {} in AndroidKeymaster41Device() argument
178 IKeymasterDevice* CreateKeymasterDevice(SecurityLevel securityLevel);
DAndroidKeymaster4Device.h52 explicit AndroidKeymaster4Device(SecurityLevel securityLevel);
112 IKeymasterDevice* CreateKeymasterDevice(SecurityLevel securityLevel);
/system/vold/
DKeymaster.cpp108 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()
/system/security/identity/
DCredential.cpp280 aidlVerificationToken.securityLevel = ::android::hardware::keymaster::SecurityLevel::SOFTWARE; in getEntries()
322 aidlVerificationToken.securityLevel = in getEntries()
323 ::android::hardware::keymaster::SecurityLevel(token->securityLevel); in getEntries()
/system/core/trusty/keymaster/4.0/
DTrustyKeymaster4Device.cpp329 token.securityLevel = legacy_enum_conversion(response.token.security_level); in verifyAuthorization()