4 ms·
With modern hardware, I think you have to give up on overwriting everything. Bad blocks get mapped out, wear leveling interferes, so “all logical blocks” never
by Someone 7y ago
With modern hardware, I think you have to give up on overwriting everything. Bad blocks get mapped out, wear leveling interferes, so “all logical blocks” never is “all physical blocks”. The hardware might Have a “overwrite all physical blocks”, but it might not even be able to overwrite bad blocks (they can be bad in any number of ways), where adversaries with enough perseverance can read them.
Also, why trust the hardware when you don’t need to? Encrypt the volume from the get go, throw away the key when you want to keep the store, but destroy the data, and you make sure the key didn’t get leaked elsewhere.
Thinking of that: it would be useful to have a static code analyzer that could tell you, for example, whether the result of “getEncryptionKey” might end up in a call to “println”, “log”, or “write”. Do these exist?