mark as deleted and zero content on deletion instead of shifting everything

This commit is contained in:
2026-04-25 13:37:53 +02:00
parent 85541e1db4
commit 48fc35e16c
4 changed files with 43 additions and 58 deletions

View File

@@ -10,6 +10,7 @@ constexpr u64 AFTER_HEADER_OFFSET = 68;
// !!! REMEMBER TO UPDATE entry_total_size IN Vault::delete_file
struct FileHeader {
bool deleted;
u64 name_ciphertext_size;
std::string name;
u64 content_ciphertext_size;