Lines Matching refs:SuperKey
148 pub struct SuperKey { struct
157 reencrypt_with: Option<Arc<SuperKey>>, argument
160 impl SuperKey { implementation
183 fn new(key: &[u8], to_encrypt: &Arc<SuperKey>) -> Result<Self> { in new()
196 reencrypt_with: Option<Arc<SuperKey>>, in decrypt() argument
197 ) -> Result<Arc<SuperKey>> { in decrypt() argument
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>>,
260 key_index: HashMap<i64, Weak<SuperKey>>,
265 fn add_key_to_key_index(&mut self, super_key: &Arc<SuperKey>) -> Result<()> { 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()
359 fn lookup_key(&self, key_id: &SuperKeyIdentifier) -> Result<Option<Arc<SuperKey>>> { in lookup_key() argument
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() argument
456 fn unwrap_key_with_key(blob: &[u8], metadata: &BlobMetaData, key: &SuperKey) -> Result<ZVec> { in unwrap_key_with_key()
601 ) -> Result<Arc<SuperKey>> { in populate_cache_from_super_key_blob() argument
615 reencrypt_with: Option<Arc<SuperKey>>, in extract_super_key_from_key_entry() argument
616 ) -> Result<Arc<SuperKey>> { in extract_super_key_from_key_entry() argument
647 Ok(Arc::new(SuperKey { in extract_super_key_from_key_entry()
709 super_key: &SuperKey, in encrypt_with_aes_super_key() argument
822 reencrypt_with: Option<Arc<SuperKey>>, in get_or_create_super_key() argument
823 ) -> Result<Arc<SuperKey>> { in get_or_create_super_key() argument
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>,