Lines Matching refs:Arc
52 sync::Arc,
157 reencrypt_with: Option<Arc<SuperKey>>,
183 fn new(key: &[u8], to_encrypt: &Arc<SuperKey>) -> Result<Self> { in new()
196 reencrypt_with: Option<Arc<SuperKey>>, in decrypt()
197 ) -> Result<Arc<SuperKey>> { in decrypt()
222 Ok(Arc::new(SuperKey { algorithm: self.algorithm, key, id: self.id, reencrypt_with })) in decrypt()
246 per_boot: Option<Arc<SuperKey>>,
249 screen_lock_bound: Option<Arc<SuperKey>>,
252 screen_lock_bound_private: Option<Arc<SuperKey>>,
265 fn add_key_to_key_index(&mut self, super_key: &Arc<SuperKey>) -> Result<()> { in add_key_to_key_index()
267 self.key_index.insert(id, Arc::downgrade(super_key)); in add_key_to_key_index()
284 pub fn set_up_boot_level_cache(self: &Arc<Self>, db: &mut KeystoreDB) -> Result<()> { in set_up_boot_level_cache()
351 fn install_per_boot_key_for_user(&self, user: UserId, super_key: Arc<SuperKey>) -> Result<()> { in install_per_boot_key_for_user()
359 fn lookup_key(&self, key_id: &SuperKeyIdentifier) -> Result<Option<Arc<SuperKey>>> { in lookup_key()
371 Arc::new(SuperKey { in lookup_key()
381 pub fn get_per_boot_key_by_user_id(&self, user_id: UserId) -> Option<Arc<SuperKey>> { in get_per_boot_key_by_user_id()
601 ) -> Result<Arc<SuperKey>> { in populate_cache_from_super_key_blob()
615 reencrypt_with: Option<Arc<SuperKey>>, in extract_super_key_from_key_entry()
616 ) -> Result<Arc<SuperKey>> { in extract_super_key_from_key_entry()
647 Ok(Arc::new(SuperKey { in extract_super_key_from_key_entry()
822 reencrypt_with: Option<Arc<SuperKey>>, in get_or_create_super_key()
823 ) -> Result<Arc<SuperKey>> { in get_or_create_super_key()
870 Ok(Arc::new(SuperKey { in get_or_create_super_key()
1020 let res: Result<(Arc<SuperKey>, Arc<SuperKey>)> = (|| { in try_unlock_user_with_biometric()
1067 LskfUnlocked(Arc<SuperKey>),
1192 reencrypt_with: Arc<SuperKey>,