Lines Matching refs:Ok
186 Ok(LockedKey { algorithm: to_encrypt.algorithm, id: to_encrypt.id, nonce, ciphertext }) in new()
222 Ok(Arc::new(SuperKey { algorithm: self.algorithm, key, id: self.id, reencrypt_with })) in decrypt()
268 Ok(()) in add_key_to_key_index()
288 return Ok(()); in set_up_boot_level_cache()
300 Ok(()) in set_up_boot_level_cache()
334 Ok(()) in watch_boot_level()
356 Ok(()) in install_per_boot_key_for_user()
361 Ok(match key_id { in lookup_key()
428 Ok(()) in unlock_user_key()
438 Ok(if let Some(key_id) = SuperKeyIdentifier::from_metadata(metadata) { in unwrap_key_if_required()
508 Ok(key_in_db) in super_key_exists_in_db_for_user()
536 Ok(UserState::LskfUnlocked(super_key)) in check_and_unlock_super_key()
538 None => Ok(UserState::Uninitialized), in check_and_unlock_super_key()
560 Ok(UserState::LskfLocked) in check_and_initialize_super_key()
588 Ok(UserState::LskfUnlocked(super_key)) in check_and_initialize_super_key()
590 Ok(UserState::Uninitialized) in check_and_initialize_super_key()
607 Ok(super_key) in populate_cache_from_super_key_blob()
647 Ok(Arc::new(SuperKey { in extract_super_key_from_key_entry()
675 Ok((encrypted_key, metadata)) in encrypt_with_password()
721 Ok((encrypted_key, metadata)) in encrypt_with_aes_super_key()
738 SuperEncryptionType::None => Ok((key_blob.to_vec(), BlobMetaData::new())), in handle_super_encryption_on_key_init()
778 Ok((encrypted_key, metadata)) in handle_super_encryption_on_key_init()
808 Ok((KeyBlob::NonSensitive(key), Some(metadata))) in reencrypt_if_required()
810 _ => Ok((KeyBlob::Ref(key_after_upgrade), None)), in reencrypt_if_required()
826 Ok(Self::extract_super_key_from_key_entry( in get_or_create_super_key()
870 Ok(Arc::new(SuperKey { in get_or_create_super_key()
914 Ok(()) in unlock_screen_lock_bound_key()
982 Ok(()) in lock_screen_lock_bound_key()
1011 |_, _| Ok(()), in try_unlock_user_with_biometric()
1037 Ok((slb, slbp)) in try_unlock_user_with_biometric()
1040 Ok((slb, slbp)) => { in try_unlock_user_with_biometric()
1049 return Ok(()); in try_unlock_user_with_biometric()
1058 Ok(()) in try_unlock_user_with_biometric()
1085 Some(super_key) => Ok(UserState::LskfUnlocked(super_key)), in get()
1092 Ok(UserState::LskfLocked) in get()
1094 Ok(UserState::Uninitialized) in get()
1117 Ok(UserState::Uninitialized) in get_with_password_changed()
1121 Ok(UserState::LskfUnlocked(super_key)) in get_with_password_changed()
1145 Ok(UserState::LskfUnlocked(super_key)) in get_with_password_unlock()
1177 Ok(()) in reset_user()