Home
last modified time | relevance | path

Searched refs:SecurityLevel (Results 1 – 25 of 26) sorted by relevance

12

/system/security/keystore/
Dkeystore_main.cpp47 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 …]
DKeyStore.h46 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];
Dkeystore_utils.cpp155 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()
Dkeystore_utils.h65 SecurityLevel flagsToSecurityLevel(int32_t flags);
66 uint32_t securityLevelToFlags(SecurityLevel secLevel);
DKeyStore.cpp53 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()
Dblob.h148 keystore::SecurityLevel getSecurityLevel() const;
149 void setSecurityLevel(keystore::SecurityLevel);
Dkeymaster_worker.cpp516 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()
Dkey_store_service.cpp643 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/
Dverification_token_seralization_test.cpp24 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/
DAndroidKeymaster4Device.h46 using ::android::hardware::keymaster::V4_0::SecurityLevel;
52 explicit AndroidKeymaster4Device(SecurityLevel securityLevel);
104 SecurityLevel securityLevel_;
112 IKeymasterDevice* CreateKeymasterDevice(SecurityLevel securityLevel);
DAndroidKeymaster41Device.h46 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/
Dfacade.proto47 enum SecurityLevel { enum
58 SecurityLevel security_level = 3;
Dfacade.cc33 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/
Dkeymaster_types.h38 using keymaster::SecurityLevel;
63 using keymaster::SecurityLevel;
/system/keymaster/include/keymaster/km_openssl/
Dsoft_keymaster_enforcement.h38 keymaster_security_level_t SecurityLevel() const override { return KM_SECURITY_LEVEL_SOFTWARE; } in SecurityLevel() function
/system/keymaster/ng/
DAndroidKeymaster41Device.cpp37 IKeymasterDevice* CreateKeymasterDevice(SecurityLevel securityLevel) { in CreateKeymasterDevice()
DAndroidKeymaster4Device.cpp60 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/
Dkeymaster_enforcement.h153 virtual keymaster_security_level_t SecurityLevel() const = 0;
/system/vold/
DKeymaster.cpp28 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/
Dpy_l2cap.py21 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/
Dle_l2cap_test.py30 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/
DTrustyKeymaster4Device.h42 using ::android::hardware::keymaster::V4_0::SecurityLevel;
/system/keymaster/km_openssl/
Dsoft_keymaster_enforcement.cpp187 response.token.security_level = SecurityLevel(); in VerifyAuthorization()
/system/core/trusty/keymaster/4.0/
DTrustyKeymaster4Device.cpp70 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/
DCredential.cpp280 aidlVerificationToken.securityLevel = ::android::hardware::keymaster::SecurityLevel::SOFTWARE; in getEntries()
323 ::android::hardware::keymaster::SecurityLevel(token->securityLevel); in getEntries()

12