Lines Matching refs:SuperKeyIdentifier
118 pub enum SuperKeyIdentifier { enum
125 impl SuperKeyIdentifier { impl
128 Some(SuperKeyIdentifier::DatabaseId(*key_id)) in from_metadata()
130 Some(SuperKeyIdentifier::BootLevel(*boot_level)) in from_metadata()
138 SuperKeyIdentifier::DatabaseId(id) => { in add_to_metadata()
141 SuperKeyIdentifier::BootLevel(level) => { in add_to_metadata()
153 id: SuperKeyIdentifier,
177 id: SuperKeyIdentifier,
266 if let SuperKeyIdentifier::DatabaseId(id) = super_key.id { in add_key_to_key_index()
359 fn lookup_key(&self, key_id: &SuperKeyIdentifier) -> Result<Option<Arc<SuperKey>>> { in lookup_key()
362 SuperKeyIdentifier::DatabaseId(id) => data.key_index.get(id).and_then(|k| k.upgrade()), in lookup_key()
363 SuperKeyIdentifier::BootLevel(level) => data in lookup_key()
438 Ok(if let Some(key_id) = SuperKeyIdentifier::from_metadata(metadata) { in unwrap_key_if_required()
650 id: SuperKeyIdentifier::DatabaseId(entry.id()), in extract_super_key_from_key_entry()
776 SuperKeyIdentifier::DatabaseId(key_id_guard.id()) in handle_super_encryption_on_key_init()
782 let key_id = SuperKeyIdentifier::BootLevel(level); in handle_super_encryption_on_key_init()
873 id: SuperKeyIdentifier::DatabaseId(key_entry.id()), in get_or_create_super_key()