Home
last modified time | relevance | path

Searched refs:Domain (Results 1 – 25 of 144) sorted by relevance

123456

/system/security/keystore2/tests/
Dkeystore2_client_list_entries_tests.rs22 Domain::Domain, IKeystoreService::IKeystoreService, KeyDescriptor::KeyDescriptor,
32 domain: Domain, in key_alias_exists() argument
74 Domain::SELINUX, in keystore2_list_entries_success()
80 domain: Domain::SELINUX, in keystore2_list_entries_success()
91 Domain::SELINUX, in keystore2_list_entries_success()
102 Domain::SELINUX, in keystore2_list_entries_success()
129 Domain::APP, in keystore2_list_entries_success()
138 let key_descriptors = keystore2.listEntries(Domain::APP, -1).unwrap(); in keystore2_list_entries_success()
144 assert_eq!(key.domain, Domain::APP); in keystore2_list_entries_success()
148 let key_descriptors = keystore2.listEntries(Domain::APP, -1).unwrap(); in keystore2_list_entries_success()
[all …]
Dkeystore2_client_update_subcomponent_tests.rs22 Domain::Domain, KeyDescriptor::KeyDescriptor, KeyPermission::KeyPermission,
39 Domain::SELINUX, in keystore2_update_subcomponent_success()
71 domain: Domain::SELINUX, in keystore2_update_subcomponent_fail()
93 domain: Domain::APP, in keystore2_update_subcomponent_no_key_entry_cert_fail()
112 vec![(Domain::SELINUX, key_generations::SELINUX_SHELL_NAMESPACE), (Domain::APP, -1)]; in keystore2_update_subcomponent_no_key_entry_cert_chain_success()
179 Domain::APP, in keystore2_update_subcomponent_fails_permission_denied()
191 assert_eq!(granted_key.domain, Domain::GRANT); in keystore2_update_subcomponent_fails_permission_denied()
199 assert_eq!(granted_key.domain, Domain::GRANT); in keystore2_update_subcomponent_fails_permission_denied()
221 domain: Domain::GRANT, in keystore2_update_subcomponent_fails_permission_denied()
251 domain: Domain::GRANT, in keystore2_update_subcomponent_fails_permission_denied()
[all …]
Dkeystore2_client_delete_key_tests.rs21 Domain::Domain, KeyDescriptor::KeyDescriptor, ResponseCode::ResponseCode,
36 Domain::APP, in keystore2_delete_key_success()
59 domain: Domain::SELINUX, in keystore2_delete_key_fail()
79 Domain::BLOB, in keystore2_delete_key_with_blob_domain_fail()
101 Domain::BLOB, in keystore2_delete_key_blob_success()
120 domain: Domain::BLOB, in keystore2_delete_key_fails_with_missing_key_blob()
140 Domain::APP, in keystore2_delete_key_blob_fail()
Dkeystore2_client_key_id_domain_tests.rs21 Domain::Domain, KeyDescriptor::KeyDescriptor, ResponseCode::ResponseCode,
41 Domain::KEY_ID, in keystore2_generate_key_with_key_id_domain_expect_sys_error()
62 Domain::APP, in keystore2_find_key_with_key_id_as_domain()
73 domain: Domain::KEY_ID, in keystore2_find_key_with_key_id_as_domain()
119 Domain::APP, in keystore2_key_id_alias_rebind_verify_by_alias()
131 Domain::APP, in keystore2_key_id_alias_rebind_verify_by_alias()
186 Domain::APP, in keystore2_key_id_alias_rebind_verify_by_key_id()
197 domain: Domain::KEY_ID, in keystore2_key_id_alias_rebind_verify_by_key_id()
214 Domain::APP, in keystore2_key_id_alias_rebind_verify_by_key_id()
Dkeystore2_client_grant_key_tests.rs22 Domain::Domain, IKeystoreSecurityLevel::IKeystoreSecurityLevel,
46 Domain::SELINUX, in generate_ec_key_and_grant_to_user()
62 domain: Domain::GRANT, in load_grant_key_and_perform_sign_operation()
127 assert_eq!(grant_key.domain, Domain::GRANT); in keystore2_grant_key_with_perm_none()
144 domain: Domain::GRANT, in keystore2_grant_key_with_perm_none()
181 assert_eq!(grant_key.domain, Domain::GRANT); in keystore2_grant_get_info_use_key_perm()
201 domain: Domain::GRANT, in keystore2_grant_get_info_use_key_perm()
228 domain: Domain::GRANT, in keystore2_grant_get_info_use_key_perm()
282 domain: Domain::GRANT, in keystore2_grant_delete_key_success()
298 domain: Domain::APP, in keystore2_grant_delete_key_success()
[all …]
Dkeystore2_client_import_keys_tests.rs26 AuthenticatorSpec::AuthenticatorSpec, Domain::Domain,
45 domain: Domain, in import_rsa_sign_key_and_perform_sample_operation() argument
155 Domain::APP, in keystore2_rsa_import_key_success()
186 Domain::APP, in keystore2_rsa_import_key_determine_key_size_and_pub_exponent()
215 &KeyDescriptor { domain: Domain::APP, nspace: -1, alias: Some(alias), blob: None }, in keystore2_rsa_import_key_fails_with_keysize_param_mismatch_error()
248 &KeyDescriptor { domain: Domain::APP, nspace: -1, alias: Some(alias), blob: None }, in keystore2_rsa_import_key_fails_with_public_exponent_param_mismatch_error()
282 &KeyDescriptor { domain: Domain::APP, nspace: -1, alias: Some(alias), blob: None }, in keystore2_rsa_import_key_with_multipurpose_fails_incompt_purpose_error()
319 Domain::APP, in keystore2_import_ec_key_success()
349 &KeyDescriptor { domain: Domain::APP, nspace: -1, alias: Some(alias), blob: None }, in keystore2_ec_import_key_fails_with_mismatch_curve_error()
367 let key_metadata = key_generations::import_aes_key(&sec_level, Domain::APP, -1, Some(alias)) in keystore2_import_aes_key_success()
[all …]
Dkeystore2_client_operation_tests.rs24 CreateOperationResponse::CreateOperationResponse, Domain::Domain,
51 Domain::APP, in create_operations()
149 Domain::SELINUX, in keystore2_forced_op_after_backendbusy_test()
208 Domain::SELINUX, in keystore2_max_forced_ops_test()
287 Domain::APP, in keystore2_ops_prune_test()
305 Domain::SELINUX, in keystore2_ops_prune_test()
387 Domain::APP, in keystore2_forced_op_perm_denied_test()
416 Domain::SELINUX, in keystore2_forced_op_success_test()
434 Domain::APP, in keystore2_op_fails_operation_busy()
Dkeystore2_client_ec_key_tests.rs23 CreateOperationResponse::CreateOperationResponse, Domain::Domain,
61 domain: Domain, in create_ec_key_and_operation() argument
83 Domain::APP, in perform_ec_sign_key_op_success()
108 Domain::APP, in perform_ec_sign_key_op_with_none_or_md5_digest()
208 Domain::BLOB, in keystore2_get_key_entry_blob_fail()
233 Domain(99), // Invalid domain. in keystore2_generate_key_invalid_domain()
261 domain: Domain::SELINUX, in keystore2_generate_ec_key_missing_curve()
298 domain: Domain::SELINUX, in keystore2_generate_ec_key_25519_multi_purpose()
323 Domain::APP, in keystore2_ec_25519_generate_key_success()
369 Domain::APP, in keystore2_ec_25519_generate_key_fail()
[all …]
Dkeystore2_client_attest_key_tests.rs23 Domain::Domain, KeyDescriptor::KeyDescriptor, ResponseCode::ResponseCode,
61 Domain::APP, in keystore2_attest_rsa_signing_key_success()
109 Domain::APP, in keystore2_attest_rsa_encrypt_key_success()
202 Domain::APP, in keystore2_attest_rsa_signing_key_with_ec_25519_key_success()
254 domain: Domain::APP, in keystore2_generate_rsa_attest_key_with_multi_purpose_fail()
290 domain: Domain::APP, in keystore2_ec_attest_key_with_multi_purpose_fail()
329 Domain::APP, in keystore2_attest_key_fails_missing_challenge()
361 Domain::APP, in keystore2_attest_rsa_key_with_non_attest_key_fails_incompat_purpose_error()
372 Domain::APP, in keystore2_attest_rsa_key_with_non_attest_key_fails_incompat_purpose_error()
416 Domain::APP, in keystore2_attest_rsa_key_with_symmetric_key_fails_sys_error()
[all …]
/system/security/keystore2/src/
Ddatabase.rs74 Domain::Domain, KeyDescriptor::KeyDescriptor,
1267 domain: Domain, in key_exists() argument
1310 Domain::APP.0, in store_super_key()
1348 domain: Domain::APP, in load_super_key()
1376 domain: Domain, in get_or_create_key_with() argument
1517 domain: &Domain, in create_key_entry() argument
1532 domain: &Domain, in create_key_entry_internal() argument
1538 Domain::APP | Domain::SELINUX => {} in create_key_entry_internal()
1810 domain: Domain, in assign_attestation_key() argument
1817 Domain::APP | Domain::SELINUX => {} in assign_attestation_key()
[all …]
Daudit_log.rs20 Domain::Domain, KeyDescriptor::KeyDescriptor,
33 fn key_owner(domain: Domain, nspace: i64, uid: i32) -> i32 { in key_owner() argument
35 Domain::APP => uid, in key_owner()
36 Domain::SELINUX => (nspace | FLAG_NAMESPACE) as i32, in key_owner()
Dservice.rs44 Domain::Domain, IKeystoreSecurityLevel::IKeystoreSecurityLevel,
159 domain: Domain::KEY_ID, in get_key_entry()
225 (Domain::APP, Some(ref alias)) => KeyDescriptor { in update_subcomponent()
226 domain: Domain::APP, in update_subcomponent()
231 (Domain::SELINUX, Some(_)) => key.clone(), in update_subcomponent()
256 domain: Domain, in get_key_descriptor_for_lookup() argument
260 Domain::APP => KeyDescriptor { in get_key_descriptor_for_lookup()
265 Domain::SELINUX => KeyDescriptor { domain, nspace: namespace, ..Default::default() }, in get_key_descriptor_for_lookup()
294 fn list_entries(&self, domain: Domain, namespace: i64) -> Result<Vec<KeyDescriptor>> { in list_entries() argument
300 fn count_num_entries(&self, domain: Domain, namespace: i64) -> Result<i32> { in count_num_entries() argument
[all …]
Dmaintenance.rs45 pub use android_system_keystore2::aidl::android::system::keystore2::Domain::Domain;
51 fn delete_namespace(&self, domain: Domain, namespace: i64) -> Result<()>; in delete_namespace() argument
127 fn clear_namespace(&self, domain: Domain, nspace: i64) -> Result<()> { in clear_namespace() argument
228 Domain::SELINUX | Domain::KEY_ID | Domain::APP => (), in migrate_key_namespace()
236 Domain::SELINUX | Domain::APP => (), in migrate_key_namespace()
299 fn clearNamespace(&self, domain: Domain, nspace: i64) -> BinderResult<()> { in clearNamespace() argument
Dsecurity_level.rs57 Domain::Domain, EphemeralStorageKeyResponse::EphemeralStorageKeyResponse,
155 Domain::BLOB => KeyDescriptor { in store_new_key()
156 domain: Domain::BLOB, in store_new_key()
194 domain: Domain::KEY_ID, in store_new_key()
224 Domain::BLOB => { in create_operation()
396 upgradedBlob: if key.domain == Domain::BLOB { upgraded_blob } else { None }, in create_operation()
514 if key.domain != Domain::BLOB && key.alias.is_none() { in generate_key()
521 Domain::APP => KeyDescriptor { in generate_key()
535 (Domain::BLOB, _) => None, in generate_key()
636 if key.domain != Domain::BLOB && key.alias.is_none() { in import_key()
[all …]
Dpermission.rs25 Domain::Domain, KeyDescriptor::KeyDescriptor, KeyPermission::KeyPermission,
292 Domain::APP => getcon().context("check_grant_permission: getcon failed.")?, in check_grant_permission()
293 Domain::SELINUX => lookup_keystore2_key_context(key.nspace) in check_grant_permission()
356 Domain::APP => { in check_key_permission()
363 Domain::SELINUX => lookup_keystore2_key_context(key.nspace) in check_key_permission()
365 Domain::GRANT => { in check_key_permission()
379 Domain::KEY_ID => { in check_key_permission()
386 Domain::BLOB => { in check_key_permission()
528 let key = KeyDescriptor { domain: Domain::APP, nspace: 0, alias: None, blob: None }; in check_grant_permission_app()
547 domain: Domain::SELINUX, in check_grant_permission_selinux()
[all …]
Dremote_provisioning.rs28 Domain::Domain, KeyDescriptor::KeyDescriptor,
93 if !self.is_asymmetric_key(params) || key.domain != Domain::APP { in get_rkpd_attestation_key_and_certs()
/system/hardware/interfaces/keystore2/aidl/android/system/keystore2/
DKeyDescriptor.aidl19 import android.system.keystore2.Domain;
55 Domain domain = Domain.APP;
DIKeystoreService.aidl20 import android.system.keystore2.Domain;
138 KeyDescriptor[] listEntries(in Domain domain, in long nspace); in listEntries()
217 int getNumberOfEntries(in Domain domain, in long nspace); in getNumberOfEntries()
246 KeyDescriptor[] listEntriesBatched(in Domain domain, in long nspace, in listEntriesBatched()
/system/security/keystore2/test_utils/
Dkey_generations.rs26 AuthenticatorSpec::AuthenticatorSpec, Authorization::Authorization, Domain::Domain,
335 domain: Domain, in generate_ec_p256_signing_key() argument
366 if domain == Domain::BLOB { in generate_ec_p256_signing_key()
379 domain: Domain, in generate_ec_key() argument
407 if domain == Domain::BLOB { in generate_ec_key()
418 domain: Domain, in generate_rsa_key() argument
469 (domain == Domain::BLOB && key_metadata.key.blob.is_some()) in generate_rsa_key()
501 domain: Domain::APP, in generate_sym_key()
539 domain: Domain::APP, in generate_hmac_key()
576 Domain::APP, in generate_attestation_key()
[all …]
/system/hardware/interfaces/keystore2/aidl/aidl_api/android.system.keystore2/3/android/system/keystore2/
DIKeystoreService.aidl44 …android.system.keystore2.KeyDescriptor[] listEntries(in android.system.keystore2.Domain domain, in… in listEntries()
48 int getNumberOfEntries(in android.system.keystore2.Domain domain, in long nspace); in getNumberOfEntries()
49 …android.system.keystore2.KeyDescriptor[] listEntriesBatched(in android.system.keystore2.Domain dom… in listEntriesBatched()
DKeyDescriptor.aidl38 android.system.keystore2.Domain domain = android.system.keystore2.Domain.APP;
/system/hardware/interfaces/keystore2/aidl/aidl_api/android.system.keystore2/current/android/system/keystore2/
DIKeystoreService.aidl44 …android.system.keystore2.KeyDescriptor[] listEntries(in android.system.keystore2.Domain domain, in… in listEntries()
48 int getNumberOfEntries(in android.system.keystore2.Domain domain, in long nspace); in getNumberOfEntries()
49 …android.system.keystore2.KeyDescriptor[] listEntriesBatched(in android.system.keystore2.Domain dom… in listEntriesBatched()
DKeyDescriptor.aidl38 android.system.keystore2.Domain domain = android.system.keystore2.Domain.APP;
/system/hardware/interfaces/keystore2/aidl/aidl_api/android.system.keystore2/2/android/system/keystore2/
DKeyDescriptor.aidl38 android.system.keystore2.Domain domain = android.system.keystore2.Domain.APP;
/system/security/keystore2/aidl/android/security/maintenance/
DIKeystoreMaintenance.aidl17 import android.system.keystore2.Domain;
77 void clearNamespace(Domain domain, long nspace); in clearNamespace()

123456