Home
last modified time | relevance | path

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

123

/system/security/keystore2/aidl/android/security/remoteprovisioning/
DIRemoteProvisioning.aidl21 import android.hardware.security.keymint.SecurityLevel;
59 AttestationPoolStatus getPoolStatus(in long expiredBy, in SecurityLevel secLevel); in getPoolStatus()
95 in SecurityLevel secLevel, out ProtectedData protectedData, out DeviceInfo deviceInfo); in generateCsr()
116 in long expirationDate, in SecurityLevel secLevel); in provisionCertChain()
128 void generateKeyPair(in boolean is_test_mode, in SecurityLevel secLevel); in generateKeyPair()
DImplInfo.aidl19 import android.hardware.security.keymint.SecurityLevel;
30 SecurityLevel secLevel;
/system/security/keystore2/src/
Dremote_provisioning.rs28 MacedPublicKey::MacedPublicKey, ProtectedData::ProtectedData, SecurityLevel::SecurityLevel,
54 security_level: SecurityLevel,
61 pub fn new(security_level: SecurityLevel, km_uuid: Uuid) -> Self { in new() argument
221 device_by_sec_level: HashMap<SecurityLevel, Asp>,
222 curve_by_sec_level: HashMap<SecurityLevel, i32>,
228 sec_level: &SecurityLevel, in get_dev_by_sec_level() argument
243 let dev = get_remotely_provisioned_component(&SecurityLevel::TRUSTED_ENVIRONMENT) in new_native_binder()
247 SecurityLevel::TRUSTED_ENVIRONMENT, in new_native_binder()
253 result.device_by_sec_level.insert(SecurityLevel::TRUSTED_ENVIRONMENT, dev); in new_native_binder()
254 if let Ok(dev) = get_remotely_provisioned_component(&SecurityLevel::STRONGBOX) { in new_native_binder()
[all …]
Dglobals.rs34 KeyMintHardwareInfo::KeyMintHardwareInfo, SecurityLevel::SecurityLevel,
91 uuid_by_sec_level: HashMap<SecurityLevel, Uuid>,
97 sec_level: &SecurityLevel, in dev_by_sec_level() argument
115 fn insert(&mut self, sec_level: SecurityLevel, dev: Asp, hw_info: KeyMintHardwareInfo) { in insert() argument
126 devices_by_sec_level: HashMap<SecurityLevel, Asp>,
130 fn dev_by_sec_level(&self, sec_level: &SecurityLevel) -> Option<Asp> { in dev_by_sec_level()
134 fn insert(&mut self, sec_level: SecurityLevel, dev: Asp) { in insert() argument
187 fn connect_keymint(security_level: &SecurityLevel) -> Result<(Asp, KeyMintHardwareInfo)> { in connect_keymint()
192 SecurityLevel::TRUSTED_ENVIRONMENT => { in connect_keymint()
199 SecurityLevel::STRONGBOX => { in connect_keymint()
[all …]
Dkey_parameter.rs104 PaddingMode::PaddingMode, SecurityLevel::SecurityLevel, Tag::Tag,
171 implement_associate_primitive_for_aidl_enum! {SecurityLevel}
987 security_level: SecurityLevel,
992 pub fn new(value: KeyParameterValue, security_level: SecurityLevel) -> Self { in new()
1005 security_level_val: SecurityLevel, in new_from_sql() argument
1024 pub fn security_level(&self) -> &SecurityLevel { in security_level() argument
1054 Tag::HARDWARE_TYPE => return KmKeyParameterValue::SecurityLevel(Default::default()), in get_field_by_tag_type()
1090 | (&KmKeyParameterValue::SecurityLevel(_), KmKeyParameterValue::SecurityLevel(_)) in check_field_matches_tag_type()
1120 SecurityLevel::STRONGBOX, in test_key_parameter()
1130 assert_eq!(*key_parameter.security_level(), SecurityLevel::STRONGBOX); in test_key_parameter()
[all …]
Dservice.rs40 …ardware_security_keymint::aidl::android::hardware::security::keymint::SecurityLevel::SecurityLevel;
55 uuid_by_sec_level: HashMap<SecurityLevel, Uuid>,
65 SecurityLevel::TRUSTED_ENVIRONMENT, in new_native_binder()
74 result.uuid_by_sec_level.insert(SecurityLevel::TRUSTED_ENVIRONMENT, uuid); in new_native_binder()
78 KeystoreSecurityLevel::new_native_binder(SecurityLevel::STRONGBOX, id_rotation_state) in new_native_binder()
82 result.uuid_by_sec_level.insert(SecurityLevel::STRONGBOX, uuid); in new_native_binder()
100 fn uuid_to_sec_level(&self, uuid: &Uuid) -> SecurityLevel { in uuid_to_sec_level() argument
105 .unwrap_or(SecurityLevel::SOFTWARE) in uuid_to_sec_level()
119 sec_level: SecurityLevel, in get_security_level() argument
360 security_level: SecurityLevel, in getSecurityLevel() argument
Dmetrics_store.rs29 SecurityLevel::SecurityLevel,
44 RkpPoolStats::RkpPoolStats, SecurityLevel::SecurityLevel as MetricsSecurityLevel,
153 sec_level: SecurityLevel, in log_key_creation_event_stats() argument
176 sec_level: SecurityLevel, in process_key_creation_event_stats() argument
315 sec_level: SecurityLevel, in log_key_operation_event_stats() argument
340 sec_level: SecurityLevel, in process_key_operation_event_stats() argument
418 fn process_security_level(sec_level: SecurityLevel) -> MetricsSecurityLevel { in process_security_level()
420 SecurityLevel::SOFTWARE => MetricsSecurityLevel::SECURITY_LEVEL_SOFTWARE, in process_security_level()
421 SecurityLevel::TRUSTED_ENVIRONMENT => { in process_security_level()
424 SecurityLevel::STRONGBOX => MetricsSecurityLevel::SECURITY_LEVEL_STRONGBOX, in process_security_level()
[all …]
Draw_device.rs31 SecurityLevel::SecurityLevel,
52 security_level: SecurityLevel,
64 pub fn get(security_level: SecurityLevel) -> Result<KeyMintDevice> { in get()
78 pub fn get_or_none(security_level: SecurityLevel) -> Result<Option<KeyMintDevice>> { in get_or_none()
95 pub fn security_level(&self) -> SecurityLevel { in security_level() argument
Ddatabase.rs65 HardwareAuthenticatorType::HardwareAuthenticatorType, SecurityLevel::SecurityLevel,
296 impl From<SecurityLevel> for Uuid {
297 fn from(sec_level: SecurityLevel) -> Self { in from()
2564 let sec_level = SecurityLevel(row.get(2).context("Failed to read sec_level.")?); in load_key_parameters()
3218 KeyParameterValue, KeyPurpose, PaddingMode, SecurityLevel,
5017 KeyParameter::new(KeyParameterValue::Invalid, SecurityLevel::TRUSTED_ENVIRONMENT), in make_test_params()
5020 SecurityLevel::TRUSTED_ENVIRONMENT, in make_test_params()
5024 SecurityLevel::TRUSTED_ENVIRONMENT, in make_test_params()
5028 SecurityLevel::TRUSTED_ENVIRONMENT, in make_test_params()
5030 KeyParameter::new(KeyParameterValue::KeySize(1024), SecurityLevel::TRUSTED_ENVIRONMENT), in make_test_params()
[all …]
Dmaintenance.rs27 …ardware_security_keymint::aidl::android::hardware::security::keymint::SecurityLevel::SecurityLevel;
155 fn call_with_watchdog<F>(sec_level: SecurityLevel, name: &'static str, op: &F) -> Result<()> in call_with_watchdog() argument
177 (SecurityLevel::TRUSTED_ENVIRONMENT, "TRUSTED_ENVIRONMENT"), in call_on_all_security_levels()
178 (SecurityLevel::STRONGBOX, "STRONGBOX"), in call_on_all_security_levels()
/system/security/keystore2/aidl/android/security/compat/
DIKeystoreCompatService.aidl20 import android.hardware.security.keymint.SecurityLevel;
35 IKeyMintDevice getKeyMintDevice (SecurityLevel securityLevel); in getKeyMintDevice()
47 ISharedSecret getSharedSecret (SecurityLevel securityLevel); in getSharedSecret()
/system/security/keystore/
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);
/system/hardware/interfaces/keystore2/aidl/android/system/keystore2/
DAuthorization.aidl20 import android.hardware.security.keymint.SecurityLevel;
25 SecurityLevel securityLevel;
DKeyMetadata.aidl19 import android.hardware.security.keymint.SecurityLevel;
43 SecurityLevel keySecurityLevel;
DIKeystoreService.aidl19 import android.hardware.security.keymint.SecurityLevel;
49 IKeystoreSecurityLevel getSecurityLevel(in SecurityLevel securityLevel); in getSecurityLevel()
/system/security/keystore2/aidl/android/security/metrics/
DRkpPoolStats.aidl19 import android.security.metrics.SecurityLevel;
27 SecurityLevel security_level;
DKeyCreationWithAuthInfo.aidl20 import android.security.metrics.SecurityLevel;
34 SecurityLevel security_level;
DKeyOperationWithGeneralInfo.aidl20 import android.security.metrics.SecurityLevel;
31 SecurityLevel security_level;
DSecurityLevel.aidl24 enum SecurityLevel { enum
/system/keymaster/ng/include/
DAndroidKeymaster4Device.h47 using ::android::hardware::keymaster::V4_0::SecurityLevel;
53 explicit AndroidKeymaster4Device(SecurityLevel securityLevel) in AndroidKeymaster4Device()
105 AndroidKeymaster4Device(::keymaster::KmVersion version, SecurityLevel securityLevel);
108 SecurityLevel securityLevel_;
116 IKeymasterDevice* CreateKeymasterDevice(SecurityLevel securityLevel);
DAndroidKeyMintDevice.h37 explicit AndroidKeyMintDevice(SecurityLevel securityLevel);
88 SecurityLevel securityLevel_;
91 IKeyMintDevice* CreateKeyMintDevice(SecurityLevel securityLevel);
/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/hardware/interfaces/keystore2/aidl/aidl_api/android.system.keystore2/1/android/system/keystore2/
DAuthorization.aidl38 android.hardware.security.keymint.SecurityLevel securityLevel;
/system/hardware/interfaces/keystore2/aidl/aidl_api/android.system.keystore2/current/android/system/keystore2/
DAuthorization.aidl38 android.hardware.security.keymint.SecurityLevel securityLevel;

123