Home
last modified time | relevance | path

Searched refs:key_entry (Results 1 – 7 of 7) sorted by relevance

/system/security/keystore2/src/
Dattestation_key_utils.rs106 let (key_id_guard, mut key_entry) = db in load_attest_key_blob_and_cert()
117 key_entry.take_key_blob_info().ok_or_else(Error::sys).context(concat!( in load_attest_key_blob_and_cert()
121 let cert = key_entry.take_cert().ok_or_else(Error::sys).context(concat!( in load_attest_key_blob_and_cert()
Dservice.rs135 let (key_id_guard, mut key_entry) = DB in get_key_entry()
149 let i_sec_level = if !key_entry.pure_cert() { in get_key_entry()
151 self.get_i_sec_level_by_uuid(key_entry.km_uuid()) in get_key_entry()
166 keySecurityLevel: self.uuid_to_sec_level(key_entry.km_uuid()), in get_key_entry()
167 certificate: key_entry.take_cert(), in get_key_entry()
168 certificateChain: key_entry.take_cert_chain(), in get_key_entry()
169 modificationTimeMs: key_entry in get_key_entry()
175 authorizations: key_parameters_to_authorizations(key_entry.into_key_parameters()), in get_key_entry()
Draw_device.rs189 if let Some((key_id_guard, mut key_entry)) = lookup { in lookup_or_generate_key()
193 let key_blob = key_entry.take_key_blob_info().and_then(|(key_blob, blob_metadata)| { in lookup_or_generate_key()
236 .and_then(|(key_id_guard, mut key_entry)| { in lookup_or_generate_key()
239 key_entry in lookup_or_generate_key()
Dsuper_key.rs194 key_entry: &KeyEntry, in decrypt()
198 let key_blob = key_entry in decrypt()
570 let key_entry = db in check_and_initialize_super_key() localVariable
584 key_entry, in check_and_initialize_super_key()
759 let (key_id_guard, key_entry) = loaded.ok_or_else(Error::sys).context( in handle_super_encryption_on_key_init()
763 key_entry.metadata().sec1_public_key().ok_or_else(Error::sys).context( in handle_super_encryption_on_key_init()
825 if let Some((_, key_entry)) = loaded_key { in get_or_create_super_key()
828 key_entry, in get_or_create_super_key()
861 let key_entry = db in get_or_create_super_key() localVariable
873 id: SuperKeyIdentifier::DatabaseId(key_entry.id()), in get_or_create_super_key()
[all …]
Ddatabase.rs1326 let key_entry = Self::load_key_components(&tx, KeyEntryLoadBits::KM, id) in load_super_key() localVariable
1328 Ok(Some((KEY_ID_LOCK.get(id), key_entry))) in load_super_key()
2728 let key_entry = Self::load_key_components(&tx, load_bits, key_id_guard.id()) in load_key_entry_internal() localVariable
2733 Ok((key_id_guard, key_entry)) in load_key_entry_internal()
3898 let (_key_guard, key_entry) = db in test_insert_and_load_full_keyentry_domain_app()
3912 assert_eq!(key_entry, make_test_key_entry_test_vector(key_id, None)); in test_insert_and_load_full_keyentry_domain_app()
3966 let (_key_guard, mut key_entry) = db in test_insert_and_load_certificate_entry_domain_app()
3981 assert!(key_entry.pure_cert()); in test_insert_and_load_certificate_entry_domain_app()
3982 assert!(key_entry.cert().is_none()); in test_insert_and_load_certificate_entry_domain_app()
3983 assert_eq!(key_entry.take_cert_chain(), Some(TEST_CERT_BLOB.to_vec())); in test_insert_and_load_certificate_entry_domain_app()
[all …]
Dboot_level_keys.rs73 let (key_id_guard, key_entry) = km_dev in get_level_zero_key()
110 &key_entry, in get_level_zero_key()
Dsecurity_level.rs242 let (key_id_guard, mut key_entry) = DB in create_operation()
263 key_entry.take_key_blob_info().ok_or_else(Error::sys).context(concat!( in create_operation()
271 Some((key_id_guard.id(), key_entry.into_key_parameters())), in create_operation()