Home
last modified time | relevance | path

Searched refs:KeystoreDB (Results 1 – 10 of 10) sorted by relevance

/system/security/keystore2/src/
Dattestation_key_utils.rs19 use crate::database::{KeyIdGuard, KeystoreDB};
59 db: &mut KeystoreDB, in get_attest_key_info() argument
84 db: &mut KeystoreDB, in get_user_generated_attestation_key() argument
99 db: &mut KeystoreDB, in load_attest_key_blob_and_cert() argument
Draw_device.rs20 KeyEntryLoadBits, KeyIdGuard, KeyMetaData, KeyMetaEntry, KeyType, KeystoreDB,
108 db: &mut KeystoreDB, in create_and_store_key() argument
152 db: &mut KeystoreDB, in lookup_from_desc() argument
177 db: &mut KeystoreDB, in lookup_or_generate_key() argument
258 db: &mut KeystoreDB, in upgrade_keyblob_if_required_with() argument
302 db: &mut KeystoreDB, in use_key_in_one_step() argument
Dgc.rs24 database::{BlobMetaData, KeystoreDB, Uuid},
50 KeystoreDB, in new_init_with() argument
89 db: KeystoreDB,
Dsuper_key.rs22 database::{KeyEntryLoadBits, KeyIdGuard, KeyMetaData, KeyMetaEntry, KeystoreDB},
193 db: &mut KeystoreDB, in decrypt() argument
283 pub fn set_up_boot_level_cache(skm: &Arc<RwLock<Self>>, db: &mut KeystoreDB) -> Result<()> { in set_up_boot_level_cache()
409 db: &mut KeystoreDB, in unlock_user_key() argument
514 db: &mut KeystoreDB, in super_key_exists_in_db_for_user() argument
534 db: &mut KeystoreDB, in check_and_unlock_super_key() argument
563 db: &mut KeystoreDB, in check_and_initialize_super_key() argument
692 db: &mut KeystoreDB, in super_encrypt_on_key_init() argument
737 db: &mut KeystoreDB, in handle_super_encryption_on_key_init() argument
817 db: &mut KeystoreDB, in get_or_create_super_key() argument
[all …]
Dglobals.rs27 database::KeystoreDB,
60 pub fn create_thread_local_db() -> KeystoreDB { in create_thread_local_db()
63 let mut db = KeystoreDB::new(&db_path, Some(GC.clone())).expect("Failed to open database."); in create_thread_local_db()
88 pub static DB: RefCell<KeystoreDB> =
169 KeystoreDB::new(&DB_PATH.read().expect("Could not get the database directory."), None)
Dutils.rs24 database::{KeyType, KeystoreDB},
336 db: &mut KeystoreDB, in list_key_entries() argument
363 pub fn count_key_entries(db: &mut KeystoreDB, domain: Domain, namespace: i64) -> Result<i32> { in count_key_entries() argument
Ddatabase.rs766 pub struct KeystoreDB { struct
859 impl KeystoreDB { implementation
3295 pub fn new_test_db() -> Result<KeystoreDB> { in new_test_db()
3296 let conn = KeystoreDB::make_connection("file::memory:")?; in new_test_db()
3298 let mut db = KeystoreDB { conn, gc: None, perboot: Arc::new(perboot::PerbootDB::new()) }; in new_test_db()
3300 KeystoreDB::init_tables(tx).context("Failed to initialize tables.").no_gc() in new_test_db()
3305 fn new_test_db_with_gc<F>(path: &Path, cb: F) -> Result<KeystoreDB> in new_test_db_with_gc()
3311 let gc_db = KeystoreDB::new(path, None).expect("Failed to open test gc db_connection."); in new_test_db_with_gc()
3314 KeystoreDB::new(path, Some(Arc::new(gc))) in new_test_db_with_gc()
3318 db: &mut KeystoreDB, in rebind_alias() argument
[all …]
Dboot_level_keys.rs19 database::{KeyType, KeystoreDB},
112 pub fn get_level_zero_key(db: &mut KeystoreDB) -> Result<ZVec> { in get_level_zero_key()
Dlegacy_importer.rs19 KeyMetaEntry, KeyType, KeystoreDB, Uuid, KEYSTORE_UUID,
49 dyn FnOnce() -> (KeystoreDB, HashMap<SecurityLevel, Uuid>, Arc<LegacyBlobLoader>)
84 db: KeystoreDB,
111 F: FnOnce() -> (KeystoreDB, HashMap<SecurityLevel, Uuid>, Arc<LegacyBlobLoader>) in set_init() argument
Dlegacy_blob.rs1791 let _db = crate::database::KeystoreDB::new(temp_dir.path(), None) in test_is_empty()