Home
last modified time | relevance | path

Searched refs:DbKey (Results 1 - 3 of 3) sorted by relevance

/base/security/asset/services/db_key_operator/src/
H A Dlib.rs62 pub struct DbKey { structure names
67 impl DbKey { impls
68 fn decrypt_db_key_cipher(user_id: i32, db_key_cipher: &Vec<u8>) -> Result<DbKey> { in decrypt_db_key_cipher()
75 fn generate_db_key() -> Result<DbKey> { in generate_db_key()
100 pub fn get_db_key(user_id: i32) -> Result<DbKey> { in get_db_key()
127 impl Drop for DbKey {
/base/security/asset/services/db_operator/src/
H A Ddatabase.rs24 use asset_db_key_operator::DbKey;
136 if is_file_exist(path)? && !DbKey::check_existance(user_id)? { in check_validity_of_db_key()
144 pub(crate) fn get_db(user_id: i32, db_name: &str, upgrade_db_version: u32, db_key: Option<&DbKey>) -> Result<Database> {
165 match DbKey::get_db_key(user_id) {
225 pub fn check_db_accessible(path: String, user_id: i32, db_name: String, db_key: Option<&DbKey>) -> Result<()> { in check_db_accessible()
252 pub(crate) fn open_and_restore(&mut self, db_key: Option<&DbKey>) -> Result<()> {
284 pub fn set_db_key(&mut self, p_key: &DbKey) -> Result<()> { in set_db_key()
/base/security/asset/services/core_service/src/common_event/
H A Dlistener.rs30 use asset_db_key_operator::DbKey;
332 let db_key = DbKey::get_db_key(user_id)?; in backup_ce_db_if_accessible()

Completed in 3 milliseconds