Also, why use json for meta-data instead of simple C Structs? No human is supposed to read this kind of data anyways.
Also, why use json for meta-data instead of simple C Structs? No human is supposed to read this kind of data anyways.
Unfortunately I don’t think that’s possible. If I scan your encrypted disk and see that 10% of blocks are zeroed out, I can assume that your disk is 90% full. So information has been leaked, which is arguably a vulnerability.
This would be on a level of a nice CS Bachelors/Masters thesis.
Personally, I would like to explore the idea of a secure enclave that keeps a map of which blocks are in use that gets referred to during write operations. This seems like a problem that is going to need to be solved with hardware.
I mean, I guess is depends on what burden of proof is needed in the case, certainly if it were balance of probability I'd be surprised if having the disk in a computer looking like it has been written to is sufficient to not make it plausible to deny.