Searched refs:super_key (Results 1 – 12 of 12) sorted by relevance
/system/security/keystore2/src/ |
D | super_key.rs | 265 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 …]
|
D | gc.rs | 24 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()
|
D | lib.rs | 49 mod super_key; module
|
D | legacy_migrator.rs | 27 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()
|
D | authorization.rs | 20 use crate::super_key::UserState;
|
D | raw_device.rs | 24 super_key::KeyBlob,
|
D | maintenance.rs | 24 use crate::super_key::UserState;
|
D | globals.rs | 22 use crate::super_key::SuperKeyManager;
|
D | database.rs | 55 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()
|
D | enforcements.rs | 20 use crate::{authorization::Error as AuthzError, super_key::SuperEncryptionType};
|
D | security_level.rs | 28 use crate::super_key::{KeyBlob, SuperKeyManager};
|
D | legacy_blob.rs | 20 super_key::SuperKeyManager,
|