Home
last modified time | relevance | path

Searched refs:super_key (Results 1 – 12 of 12) sorted by relevance

/system/security/keystore2/src/
Dsuper_key.rs265 fn add_key_to_key_index(&mut self, super_key: &Arc<SuperKey>) -> Result<()> { in add_key_to_key_index()
266 if let SuperKeyIdentifier::DatabaseId(id) = super_key.id { in add_key_to_key_index()
267 self.key_index.insert(id, Arc::downgrade(super_key)); in add_key_to_key_index()
272 super_key.id in add_key_to_key_index()
351 fn install_per_boot_key_for_user(&self, user: UserId, super_key: Arc<SuperKey>) -> Result<()> { in install_per_boot_key_for_user()
353 data.add_key_to_key_index(&super_key) in install_per_boot_key_for_user()
355 data.user_keys.entry(user).or_default().per_boot = Some(super_key); in install_per_boot_key_for_user()
405 let super_key = legacy_blob_loader in unlock_user_key() localVariable
408 let super_key = match super_key { in unlock_user_key() localVariable
421 Self::encrypt_with_password(&super_key, pw).context("In create_new_key.") in unlock_user_key()
[all …]
Dgc.rs24 super_key::SuperKeyManager,
59 let (invalidate_key, db, super_key) = init(); in new_init_with()
67 super_key, in new_init_with()
90 super_key: Arc<SuperKeyManager>, field
123 .super_key in process_one_key()
Dlib.rs49 mod super_key; module
Dlegacy_migrator.rs27 super_key::USER_SUPER_KEY,
568 if let Some(super_key) = self in check_and_migrate_super_key()
574 crate::super_key::SuperKeyManager::encrypt_with_password(&super_key, pw) in check_and_migrate_super_key()
Dauthorization.rs20 use crate::super_key::UserState;
Draw_device.rs24 super_key::KeyBlob,
Dmaintenance.rs24 use crate::super_key::UserState;
Dglobals.rs22 use crate::super_key::SuperKeyManager;
Ddatabase.rs55 super_key::SuperKeyType,
57 use crate::{gc::Gc, super_key::USER_SUPER_KEY};
3222 use crate::super_key::SuperKeyManager;
3257 let super_key: Arc<SuperKeyManager> = Default::default(); in new_test_db_with_gc() localVariable
3260 let gc = Gc::new_init_with(Default::default(), move || (Box::new(cb), gc_db, super_key)); in new_test_db_with_gc()
5466 let super_key = keystore2_crypto::generate_aes256_key()?; in test_store_super_key() localVariable
5469 keystore2_crypto::aes_gcm_encrypt(secret_bytes, &super_key)?; in test_store_super_key()
5472 SuperKeyManager::encrypt_with_password(&super_key, &pw)?; in test_store_super_key()
Denforcements.rs20 use crate::{authorization::Error as AuthzError, super_key::SuperEncryptionType};
Dsecurity_level.rs28 use crate::super_key::{KeyBlob, SuperKeyManager};
Dlegacy_blob.rs20 super_key::SuperKeyManager,