Home
last modified time | relevance | path

Searched refs:KeyDescriptor (Results 1 – 25 of 63) sorted by relevance

123

/system/hardware/interfaces/keystore2/aidl/android/system/keystore2/
DIKeystoreSecurityLevel.aidl24 import android.system.keystore2.KeyDescriptor;
88 CreateOperationResponse createOperation(in KeyDescriptor key, in createOperation()
137 KeyMetadata generateKey(in KeyDescriptor key, in @nullable KeyDescriptor attestationKey, in generateKey()
151 KeyMetadata importKey(in KeyDescriptor key, in @nullable KeyDescriptor attestationKey, in importKey()
180 KeyMetadata importWrappedKey(in KeyDescriptor key, in KeyDescriptor wrappingKey, in importWrappedKey()
200 EphemeralStorageKeyResponse convertStorageKeyToEphemeral(in KeyDescriptor storageKey); in convertStorageKeyToEphemeral()
218 void deleteKey(in KeyDescriptor key); in deleteKey()
DIKeystoreService.aidl22 import android.system.keystore2.KeyDescriptor;
83 KeyEntryResponse getKeyEntry(in KeyDescriptor key); in getKeyEntry()
108 void updateSubcomponent(in KeyDescriptor key, in @nullable byte[] publicCert, in updateSubcomponent()
138 KeyDescriptor[] listEntries(in Domain domain, in long nspace); in listEntries()
153 void deleteKey(in KeyDescriptor key); in deleteKey()
183 KeyDescriptor grant(in KeyDescriptor key, in int granteeUid, in int accessVector); in grant()
194 void ungrant(in KeyDescriptor key, in int granteeUid); in ungrant()
246 KeyDescriptor[] listEntriesBatched(in Domain domain, in long nspace, in listEntriesBatched()
DKeyMetadata.aidl22 import android.system.keystore2.KeyDescriptor;
38 KeyDescriptor key;
/system/hardware/interfaces/keystore2/aidl/aidl_api/android.system.keystore2/3/android/system/keystore2/
DIKeystoreService.aidl39 …android.system.keystore2.KeyEntryResponse getKeyEntry(in android.system.keystore2.KeyDescriptor ke… in getKeyEntry()
40 …void updateSubcomponent(in android.system.keystore2.KeyDescriptor key, in @nullable byte[] publicC… in updateSubcomponent()
44 …android.system.keystore2.KeyDescriptor[] listEntries(in android.system.keystore2.Domain domain, in… in listEntries()
45 void deleteKey(in android.system.keystore2.KeyDescriptor key); in deleteKey()
46 …android.system.keystore2.KeyDescriptor grant(in android.system.keystore2.KeyDescriptor key, in int… in grant()
47 void ungrant(in android.system.keystore2.KeyDescriptor key, in int granteeUid); in ungrant()
49 …android.system.keystore2.KeyDescriptor[] listEntriesBatched(in android.system.keystore2.Domain dom… in listEntriesBatched()
DIKeystoreSecurityLevel.aidl38 …2.CreateOperationResponse createOperation(in android.system.keystore2.KeyDescriptor key, in androi… in createOperation()
39 … generateKey(in android.system.keystore2.KeyDescriptor key, in @nullable android.system.keystore2. in generateKey()
40 …ta importKey(in android.system.keystore2.KeyDescriptor key, in @nullable android.system.keystore2. in importKey()
41 … importWrappedKey(in android.system.keystore2.KeyDescriptor key, in android.system.keystore2.KeyDe… in importWrappedKey()
42 …rageKeyResponse convertStorageKeyToEphemeral(in android.system.keystore2.KeyDescriptor storageKey); in convertStorageKeyToEphemeral()
43 void deleteKey(in android.system.keystore2.KeyDescriptor key); in deleteKey()
/system/hardware/interfaces/keystore2/aidl/aidl_api/android.system.keystore2/4/android/system/keystore2/
DIKeystoreService.aidl39 …android.system.keystore2.KeyEntryResponse getKeyEntry(in android.system.keystore2.KeyDescriptor ke… in getKeyEntry()
40 …void updateSubcomponent(in android.system.keystore2.KeyDescriptor key, in @nullable byte[] publicC… in updateSubcomponent()
44 …android.system.keystore2.KeyDescriptor[] listEntries(in android.system.keystore2.Domain domain, in… in listEntries()
45 void deleteKey(in android.system.keystore2.KeyDescriptor key); in deleteKey()
46 …android.system.keystore2.KeyDescriptor grant(in android.system.keystore2.KeyDescriptor key, in int… in grant()
47 void ungrant(in android.system.keystore2.KeyDescriptor key, in int granteeUid); in ungrant()
49 …android.system.keystore2.KeyDescriptor[] listEntriesBatched(in android.system.keystore2.Domain dom… in listEntriesBatched()
DIKeystoreSecurityLevel.aidl38 …2.CreateOperationResponse createOperation(in android.system.keystore2.KeyDescriptor key, in androi… in createOperation()
39 … generateKey(in android.system.keystore2.KeyDescriptor key, in @nullable android.system.keystore2. in generateKey()
40 …ta importKey(in android.system.keystore2.KeyDescriptor key, in @nullable android.system.keystore2. in importKey()
41 … importWrappedKey(in android.system.keystore2.KeyDescriptor key, in android.system.keystore2.KeyDe… in importWrappedKey()
42 …rageKeyResponse convertStorageKeyToEphemeral(in android.system.keystore2.KeyDescriptor storageKey); in convertStorageKeyToEphemeral()
43 void deleteKey(in android.system.keystore2.KeyDescriptor key); in deleteKey()
/system/hardware/interfaces/keystore2/aidl/aidl_api/android.system.keystore2/current/android/system/keystore2/
DIKeystoreService.aidl39 …android.system.keystore2.KeyEntryResponse getKeyEntry(in android.system.keystore2.KeyDescriptor ke… in getKeyEntry()
40 …void updateSubcomponent(in android.system.keystore2.KeyDescriptor key, in @nullable byte[] publicC… in updateSubcomponent()
44 …android.system.keystore2.KeyDescriptor[] listEntries(in android.system.keystore2.Domain domain, in… in listEntries()
45 void deleteKey(in android.system.keystore2.KeyDescriptor key); in deleteKey()
46 …android.system.keystore2.KeyDescriptor grant(in android.system.keystore2.KeyDescriptor key, in int… in grant()
47 void ungrant(in android.system.keystore2.KeyDescriptor key, in int granteeUid); in ungrant()
49 …android.system.keystore2.KeyDescriptor[] listEntriesBatched(in android.system.keystore2.Domain dom… in listEntriesBatched()
DIKeystoreSecurityLevel.aidl38 …2.CreateOperationResponse createOperation(in android.system.keystore2.KeyDescriptor key, in androi… in createOperation()
39 … generateKey(in android.system.keystore2.KeyDescriptor key, in @nullable android.system.keystore2. in generateKey()
40 …ta importKey(in android.system.keystore2.KeyDescriptor key, in @nullable android.system.keystore2. in importKey()
41 … importWrappedKey(in android.system.keystore2.KeyDescriptor key, in android.system.keystore2.KeyDe… in importWrappedKey()
42 …rageKeyResponse convertStorageKeyToEphemeral(in android.system.keystore2.KeyDescriptor storageKey); in convertStorageKeyToEphemeral()
43 void deleteKey(in android.system.keystore2.KeyDescriptor key); in deleteKey()
/system/hardware/interfaces/keystore2/aidl/aidl_api/android.system.keystore2/2/android/system/keystore2/
DIKeystoreSecurityLevel.aidl38 …2.CreateOperationResponse createOperation(in android.system.keystore2.KeyDescriptor key, in androi… in createOperation()
39 … generateKey(in android.system.keystore2.KeyDescriptor key, in @nullable android.system.keystore2. in generateKey()
40 …ta importKey(in android.system.keystore2.KeyDescriptor key, in @nullable android.system.keystore2. in importKey()
41 … importWrappedKey(in android.system.keystore2.KeyDescriptor key, in android.system.keystore2.KeyDe… in importWrappedKey()
42 …rageKeyResponse convertStorageKeyToEphemeral(in android.system.keystore2.KeyDescriptor storageKey); in convertStorageKeyToEphemeral()
43 void deleteKey(in android.system.keystore2.KeyDescriptor key); in deleteKey()
DIKeystoreService.aidl39 …android.system.keystore2.KeyEntryResponse getKeyEntry(in android.system.keystore2.KeyDescriptor ke… in getKeyEntry()
40 …void updateSubcomponent(in android.system.keystore2.KeyDescriptor key, in @nullable byte[] publicC… in updateSubcomponent()
41 …android.system.keystore2.KeyDescriptor[] listEntries(in android.system.keystore2.Domain domain, in… in listEntries()
42 void deleteKey(in android.system.keystore2.KeyDescriptor key); in deleteKey()
43 …android.system.keystore2.KeyDescriptor grant(in android.system.keystore2.KeyDescriptor key, in int… in grant()
44 void ungrant(in android.system.keystore2.KeyDescriptor key, in int granteeUid); in ungrant()
/system/hardware/interfaces/keystore2/aidl/aidl_api/android.system.keystore2/1/android/system/keystore2/
DIKeystoreSecurityLevel.aidl38 …2.CreateOperationResponse createOperation(in android.system.keystore2.KeyDescriptor key, in androi… in createOperation()
39 … generateKey(in android.system.keystore2.KeyDescriptor key, in @nullable android.system.keystore2. in generateKey()
40 …ta importKey(in android.system.keystore2.KeyDescriptor key, in @nullable android.system.keystore2. in importKey()
41 … importWrappedKey(in android.system.keystore2.KeyDescriptor key, in android.system.keystore2.KeyDe… in importWrappedKey()
42 …rageKeyResponse convertStorageKeyToEphemeral(in android.system.keystore2.KeyDescriptor storageKey); in convertStorageKeyToEphemeral()
43 void deleteKey(in android.system.keystore2.KeyDescriptor key); in deleteKey()
DIKeystoreService.aidl39 …android.system.keystore2.KeyEntryResponse getKeyEntry(in android.system.keystore2.KeyDescriptor ke… in getKeyEntry()
40 …void updateSubcomponent(in android.system.keystore2.KeyDescriptor key, in @nullable byte[] publicC… in updateSubcomponent()
41 …android.system.keystore2.KeyDescriptor[] listEntries(in android.system.keystore2.Domain domain, in… in listEntries()
42 void deleteKey(in android.system.keystore2.KeyDescriptor key); in deleteKey()
43 …android.system.keystore2.KeyDescriptor grant(in android.system.keystore2.KeyDescriptor key, in int… in grant()
44 void ungrant(in android.system.keystore2.KeyDescriptor key, in int granteeUid); in ungrant()
/system/security/keystore2/src/
Daudit_log.rs20 Domain::Domain, KeyDescriptor::KeyDescriptor,
45 pub fn log_key_generated(key: &KeyDescriptor, calling_app: uid_t, success: bool) { in log_key_generated() argument
50 pub fn log_key_imported(key: &KeyDescriptor, calling_app: uid_t, success: bool) { in log_key_imported() argument
55 pub fn log_key_deleted(key: &KeyDescriptor, calling_app: uid_t, success: bool) { in log_key_deleted() argument
60 pub fn log_key_integrity_violation(key: &KeyDescriptor) { in log_key_integrity_violation() argument
69 fn log_key_event(tag: u32, key: &KeyDescriptor, calling_app: uid_t, success: bool) { in log_key_event() argument
Dservice.rs46 KeyDescriptor::KeyDescriptor, KeyEntryResponse::KeyEntryResponse, KeyMetadata::KeyMetadata,
126 fn get_key_entry(&self, key: &KeyDescriptor) -> Result<KeyEntryResponse> { in get_key_entry()
160 key: KeyDescriptor { in get_key_entry()
181 key: &KeyDescriptor, in update_subcomponent() argument
229 (Domain::APP, Some(ref alias)) => KeyDescriptor { in update_subcomponent()
262 ) -> Result<KeyDescriptor> { in get_key_descriptor_for_lookup() argument
264 Domain::APP => KeyDescriptor { in get_key_descriptor_for_lookup()
269 Domain::SELINUX => KeyDescriptor { domain, nspace: namespace, ..Default::default() }, in get_key_descriptor_for_lookup()
298 fn list_entries(&self, domain: Domain, namespace: i64) -> Result<Vec<KeyDescriptor>> { in list_entries() argument
315 ) -> Result<Vec<KeyDescriptor>> { in list_entries_batched() argument
[all …]
Dattestation_key_utils.rs29 Domain::Domain, KeyDescriptor::KeyDescriptor, ResponseCode::ResponseCode,
54 key: &KeyDescriptor, in get_attest_key_info() argument
56 attest_key_descriptor: Option<&KeyDescriptor>, in get_attest_key_info() argument
82 key: &KeyDescriptor, in get_user_generated_attestation_key() argument
97 key: &KeyDescriptor, in load_attest_key_blob_and_cert() argument
Dsecurity_level.rs62 IKeystoreSecurityLevel::IKeystoreSecurityLevel, KeyDescriptor::KeyDescriptor,
124 key: KeyDescriptor, in store_new_key() argument
162 Domain::BLOB => KeyDescriptor { in store_new_key()
168 .with::<_, Result<KeyDescriptor>>(|db| { in store_new_key()
200 Ok(KeyDescriptor { in store_new_key()
221 key: &KeyDescriptor, in create_operation() argument
408 key: &KeyDescriptor, in add_required_parameters() argument
513 key: &KeyDescriptor, in generate_key() argument
514 attest_key_descriptor: Option<&KeyDescriptor>, in generate_key() argument
526 Domain::APP => KeyDescriptor { in generate_key()
[all …]
Dutils.rs40 Authorization::Authorization, Domain::Domain, KeyDescriptor::KeyDescriptor,
73 pub fn check_grant_permission(access_vec: KeyPermSet, key: &KeyDescriptor) -> anyhow::Result<()> { in check_grant_permission()
90 key: &KeyDescriptor, in check_key_permission() argument
490 legacy_descriptors: &[KeyDescriptor], in merge_and_filter_key_entry_lists() argument
491 db_descriptors: &[KeyDescriptor], in merge_and_filter_key_entry_lists() argument
493 ) -> Vec<KeyDescriptor> { in merge_and_filter_key_entry_lists() argument
494 let mut result: Vec<KeyDescriptor> = in merge_and_filter_key_entry_lists()
517 key_descriptors: &[KeyDescriptor], in estimate_safe_amount_to_return() argument
561 ) -> Result<Vec<KeyDescriptor>> { in list_key_entries() argument
562 let legacy_key_descriptors: Vec<KeyDescriptor> = LEGACY_IMPORTER in list_key_entries()
[all …]
Draw_device.rs36 Domain::Domain, KeyDescriptor::KeyDescriptor, ResponseCode::ResponseCode,
109 key_desc: &KeyDescriptor, in create_and_store_key() argument
141 pub fn internal_descriptor(alias: String) -> KeyDescriptor { in internal_descriptor() argument
142 KeyDescriptor { in internal_descriptor()
153 key_desc: &KeyDescriptor, in lookup_from_desc() argument
178 key_desc: &KeyDescriptor, in lookup_or_generate_key() argument
/system/security/keystore2/tests/
Dkeystore2_client_update_subcomponent_tests.rs22 Domain::Domain, KeyDescriptor::KeyDescriptor, KeyPermission::KeyPermission,
70 &KeyDescriptor { in keystore2_update_subcomponent_fail()
92 &KeyDescriptor { in keystore2_update_subcomponent_no_key_entry_cert_fail()
118 &KeyDescriptor { domain, nspace, alias: Some(alias.to_string()), blob: None }, in keystore2_update_subcomponent_no_key_entry_cert_chain_success()
125 .getKeyEntry(&KeyDescriptor { in keystore2_update_subcomponent_no_key_entry_cert_chain_success()
138 .deleteKey(&KeyDescriptor { in keystore2_update_subcomponent_no_key_entry_cert_chain_success()
222 &KeyDescriptor { in keystore2_update_subcomponent_fails_permission_denied()
253 &KeyDescriptor { in keystore2_update_subcomponent_fails_permission_denied()
265 .getKeyEntry(&KeyDescriptor { in keystore2_update_subcomponent_fails_permission_denied()
Dkeystore2_client_keystore_engine_tests.rs24 IKeystoreService::IKeystoreService, KeyDescriptor::KeyDescriptor, KeyPermission::KeyPermission,
39 ) -> binder::Result<KeyDescriptor> { in generate_rsa_key_and_grant_to_user() argument
52 &KeyDescriptor { in generate_rsa_key_and_grant_to_user()
76 ) -> binder::Result<KeyDescriptor> { in generate_ec_key_and_grant_to_user() argument
87 &KeyDescriptor { in generate_ec_key_and_grant_to_user()
150 .deleteKey(&KeyDescriptor { in perform_crypto_op_using_granted_key()
274 .getKeyEntry(&KeyDescriptor { in keystore2_perofrm_crypto_op_using_keystore2_engine_pem_pub_key_success()
Dkeystore2_client_grant_key_tests.rs23 IKeystoreService::IKeystoreService, KeyDescriptor::KeyDescriptor, KeyPermission::KeyPermission,
39 ) -> binder::Result<KeyDescriptor> { in generate_ec_key_and_grant_to_user() argument
61 let key_entry_response = keystore2.getKeyEntry(&KeyDescriptor { in load_grant_key_and_perform_sign_operation()
145 let result = key_generations::map_ks_error(keystore2.getKeyEntry(&KeyDescriptor { in keystore2_grant_key_with_perm_none()
204 .getKeyEntry(&KeyDescriptor { in keystore2_grant_get_info_use_key_perm()
231 let result = key_generations::map_ks_error(keystore2.deleteKey(&KeyDescriptor { in keystore2_grant_get_info_use_key_perm()
287 .deleteKey(&KeyDescriptor { in keystore2_grant_delete_key_success()
304 key_generations::map_ks_error(keystore2_inst.getKeyEntry(&KeyDescriptor { in keystore2_grant_delete_key_success()
367 .getKeyEntry(&KeyDescriptor { in keystore2_grant_key_fails_with_permission_denied()
396 let result = key_generations::map_ks_error(keystore2.getKeyEntry(&KeyDescriptor { in keystore2_grant_key_fails_with_permission_denied()
[all …]
/system/security/keystore2/aidl/android/security/maintenance/
DIKeystoreMaintenance.aidl18 import android.system.keystore2.KeyDescriptor;
127 void migrateKeyNamespace(in KeyDescriptor source, in KeyDescriptor destination); in migrateKeyNamespace()
/system/security/ondevice-signing/
DKeystoreHmacKey.h31 using KeyDescriptor = ::android::system::keystore2::KeyDescriptor; variable
44 KeyDescriptor mDescriptor;
DKeystoreKey.h34 using KeyDescriptor = ::android::system::keystore2::KeyDescriptor; variable
54 KeyDescriptor mDescriptor;

123