/system/security/keystore/ |
D | keystore_main.cpp | 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() [all …]
|
D | KeyStore.h | 46 T& operator[](SecurityLevel secLevel) { 47 static_assert(uint32_t(SecurityLevel::SOFTWARE) == 0 && 48 uint32_t(SecurityLevel::TRUSTED_ENVIRONMENT) == 1 && 49 uint32_t(SecurityLevel::STRONGBOX) == 2, 53 T operator[](SecurityLevel secLevel) const { 54 if (static_cast<uint32_t>(secLevel) > static_cast<uint32_t>(SecurityLevel::STRONGBOX)) { 79 SecurityLevel minimalAllowedSecurityLevelForNewKeys); 82 std::shared_ptr<KeymasterWorker> getDevice(SecurityLevel securityLevel) const { 90 return mKmDevices[SecurityLevel::SOFTWARE];
|
D | keystore_utils.cpp | 155 SecurityLevel flagsToSecurityLevel(int32_t flags) { in flagsToSecurityLevel() 160 return SecurityLevel::SOFTWARE; in flagsToSecurityLevel() 162 return SecurityLevel::STRONGBOX; in flagsToSecurityLevel() 164 return SecurityLevel::TRUSTED_ENVIRONMENT; in flagsToSecurityLevel() 168 uint32_t securityLevelToFlags(SecurityLevel secLevel) { in securityLevelToFlags() 170 case SecurityLevel::SOFTWARE: in securityLevelToFlags() 172 case SecurityLevel::STRONGBOX: in securityLevelToFlags()
|
D | keystore_utils.h | 65 SecurityLevel flagsToSecurityLevel(int32_t flags); 66 uint32_t securityLevelToFlags(SecurityLevel secLevel);
|
D | KeyStore.cpp | 53 SecurityLevel minimalAllowedSecurityLevelForNewKeys) in KeyStore() 54 : mAllowNewFallback(minimalAllowedSecurityLevelForNewKeys == SecurityLevel::SOFTWARE), in KeyStore() 62 if (kmDevices[SecurityLevel(i)]) { in KeyStore() 63 mKmDevices[SecurityLevel(i)] = in KeyStore() 64 std::make_shared<KeymasterWorker>(kmDevices[SecurityLevel(i)], this); in KeyStore() 344 if (getDevice(SecurityLevel::STRONGBOX)) return true; in isHardwareBacked() 345 if (!getDevice(SecurityLevel::TRUSTED_ENVIRONMENT)) { in isHardwareBacked() 350 auto version = getDevice(SecurityLevel::TRUSTED_ENVIRONMENT)->halVersion(); in isHardwareBacked() 507 if (mKmDevices[SecurityLevel(i)]) mKmDevices[SecurityLevel(i)]->binderDied(who); in binderDied()
|
D | blob.h | 148 keystore::SecurityLevel getSecurityLevel() const; 149 void setSecurityLevel(keystore::SecurityLevel);
|
D | keymaster_worker.cpp | 516 dev->halVersion().securityLevel == SecurityLevel::STRONGBOX) { in begin() 534 auto teeKmDevice = keyStore_->getDevice(SecurityLevel::TRUSTED_ENVIRONMENT); in begin() 797 SecurityLevel securityLevel = keymasterDevice_->halVersion().securityLevel; in generateKey() 801 bool consider_fallback = securityLevel == SecurityLevel::TRUSTED_ENVIRONMENT; in generateKey() 901 SecurityLevel securityLevel = keymasterDevice_->halVersion().securityLevel; in importKey() 905 bool consider_fallback = securityLevel == SecurityLevel::TRUSTED_ENVIRONMENT; in importKey() 998 SecurityLevel securityLevel = keymasterDevice_->halVersion().securityLevel; in importWrappedKey()
|
D | key_store_service.cpp | 643 SecurityLevel securityLevel = flagsToSecurityLevel(flags); in generateKey() 741 SecurityLevel securityLevel = flagsToSecurityLevel(flags); in importKey() 971 std::shared_ptr<KeymasterWorker> dev = mKeyStore->getDevice(SecurityLevel::TRUSTED_ENVIRONMENT); in getTokensForCredstore() 974 dev = mKeyStore->getDevice(SecurityLevel::SOFTWARE); in getTokensForCredstore() 1201 auto dev = mKeyStore->getDevice(SecurityLevel::TRUSTED_ENVIRONMENT); in attestDeviceIds() 1303 SecurityLevel securityLevel = wrappingKeyBlob.getSecurityLevel(); in importWrappedKey()
|
/system/security/keystore/tests/ |
D | verification_token_seralization_test.cpp | 24 using android::hardware::keymaster::V4_0::SecurityLevel; 35 token.securityLevel = SecurityLevel::TRUSTED_ENVIRONMENT; in TEST() 55 token.securityLevel = SecurityLevel::TRUSTED_ENVIRONMENT; in TEST()
|
/system/keymaster/ng/include/ |
D | AndroidKeymaster4Device.h | 46 using ::android::hardware::keymaster::V4_0::SecurityLevel; 52 explicit AndroidKeymaster4Device(SecurityLevel securityLevel); 104 SecurityLevel securityLevel_; 112 IKeymasterDevice* CreateKeymasterDevice(SecurityLevel securityLevel);
|
D | AndroidKeymaster41Device.h | 46 using ::android::hardware::keymaster::V4_0::SecurityLevel; 65 explicit AndroidKeymaster41Device(SecurityLevel securityLevel) : super(securityLevel) {} in AndroidKeymaster41Device() 178 IKeymasterDevice* CreateKeymasterDevice(SecurityLevel securityLevel);
|
/system/bt/gd/l2cap/le/ |
D | facade.proto | 47 enum SecurityLevel { enum 58 SecurityLevel security_level = 3;
|
D | facade.cc | 33 SecurityPolicy SecurityLevelToPolicy(SecurityLevel level) { in SecurityLevelToPolicy() 35 case SecurityLevel::NO_SECURITY: in SecurityLevelToPolicy() 37 case SecurityLevel::UNAUTHENTICATED_PAIRING_WITH_ENCRYPTION: in SecurityLevelToPolicy() 39 case SecurityLevel::AUTHENTICATED_PAIRING_WITH_ENCRYPTION: in SecurityLevelToPolicy() 41 case SecurityLevel::AUTHENTICATED_PAIRING_WITH_128_BIT_KEY: in SecurityLevelToPolicy() 43 case SecurityLevel::AUTHORIZATION: in SecurityLevelToPolicy()
|
/system/security/keystore/include/keystore/ |
D | keymaster_types.h | 38 using keymaster::SecurityLevel; 63 using keymaster::SecurityLevel;
|
/system/keymaster/include/keymaster/km_openssl/ |
D | soft_keymaster_enforcement.h | 38 keymaster_security_level_t SecurityLevel() const override { return KM_SECURITY_LEVEL_SOFTWARE; } in SecurityLevel() function
|
/system/keymaster/ng/ |
D | AndroidKeymaster41Device.cpp | 37 IKeymasterDevice* CreateKeymasterDevice(SecurityLevel securityLevel) { in CreateKeymasterDevice()
|
D | AndroidKeymaster4Device.cpp | 60 inline SecurityLevel legacy_enum_conversion(const keymaster_security_level_t value) { in legacy_enum_conversion() 61 return static_cast<SecurityLevel>(value); in legacy_enum_conversion() 223 AndroidKeymaster4Device::AndroidKeymaster4Device(SecurityLevel securityLevel) in AndroidKeymaster4Device() 577 IKeymasterDevice* CreateKeymasterDevice(SecurityLevel securityLevel) { in CreateKeymasterDevice()
|
/system/keymaster/include/keymaster/ |
D | keymaster_enforcement.h | 153 virtual keymaster_security_level_t SecurityLevel() const = 0;
|
/system/vold/ |
D | Keymaster.cpp | 28 using ::android::hardware::keymaster::V4_0::SecurityLevel; 108 if (dev->halVersion().securityLevel != SecurityLevel::STRONGBOX) { in Keymaster() 228 return mDevice->halVersion().securityLevel != km::SecurityLevel::SOFTWARE; in isSecure()
|
/system/bt/gd/cert/ |
D | py_l2cap.py | 21 from l2cap.le.facade_pb2 import SecurityLevel 179 def register_coc(self, cert_address, psm=0x33, security_level=SecurityLevel.NO_SECURITY):
|
/system/bt/gd/l2cap/le/cert/ |
D | le_l2cap_test.py | 30 from l2cap.le.facade_pb2 import SecurityLevel 436 …self.dut_l2cap.register_coc(self.cert_address, psm, SecurityLevel.AUTHENTICATED_PAIRING_WITH_ENCRY… 460 self.dut_l2cap.register_coc(self.cert_address, psm, SecurityLevel.AUTHORIZATION) 488 …self.dut_l2cap.register_coc(self.cert_address, psm, SecurityLevel.AUTHENTICATED_PAIRING_WITH_128_B…
|
/system/core/trusty/keymaster/include/trusty_keymaster/ |
D | TrustyKeymaster4Device.h | 42 using ::android::hardware::keymaster::V4_0::SecurityLevel;
|
/system/keymaster/km_openssl/ |
D | soft_keymaster_enforcement.cpp | 187 response.token.security_level = SecurityLevel(); in VerifyAuthorization()
|
/system/core/trusty/keymaster/4.0/ |
D | TrustyKeymaster4Device.cpp | 70 inline SecurityLevel legacy_enum_conversion(const keymaster_security_level_t value) { in legacy_enum_conversion() 71 return static_cast<SecurityLevel>(value); in legacy_enum_conversion() 268 _hidl_cb(SecurityLevel::TRUSTED_ENVIRONMENT, "TrustyKeymaster", "Google"); in getHardwareInfo()
|
/system/security/identity/ |
D | Credential.cpp | 280 aidlVerificationToken.securityLevel = ::android::hardware::keymaster::SecurityLevel::SOFTWARE; in getEntries() 323 ::android::hardware::keymaster::SecurityLevel(token->securityLevel); in getEntries()
|