News for hackers. Stuff that matters.
Re:Show HN: Puree – Password-based Uniform-Random-Equivalent... by WhatIsDukkha on Sunday June 07, 2020 @03:22PM (#23449951)
This touches on one of the great problems of encrypted disks.

Anything on the volume is almost by definition important.

But a single bit flip and it can be complete garbage.

It would be lovely if someone, far more clever then me, layered fountain codes

https://en.wikipedia.org/wiki/Fountain_code

at a tasteful spot.

Re:Show HN: Puree – Password-based Uniform-Random-Equivalent... by dheera on Sunday June 07, 2020 @03:40PM (#23450080)
> But a single bit flip and it can be complete garbage

ECC?

Re:Show HN: Puree – Password-based Uniform-Random-Equivalent... by fwip on Sunday June 07, 2020 @04:51PM (#23450687)
Can any class of "data with ECC" be made indistinguishable from random data, excepting obscurity?
Re:Show HN: Puree – Password-based Uniform-Random-Equivalent... by dfox on Sunday June 07, 2020 @06:07PM (#23451320)
It can: you can just apply encryption after the FEC/ECC. This is done for example in GSM and I believe in many other radio systems. Of course there is one huge caveat: it inherently means that you are doing MAC-then-Encrypt which is generally disliked as error-prone.
Re:Show HN: Puree – Password-based Uniform-Random-Equivalent... by fwip on Monday June 08, 2020 @12:44PM (#23458180)
Right, if you get a bitflip error in the encrypted data, decrypting it isn't going to yield something that the error-correcting-codes work on, right? It'll potentially ruin all your data, not just the single affected bit. I guess if GSM is doing it it must be useful, I need to read up on that.
Re:Show HN: Puree – Password-based Uniform-Random-Equivalent... by dfox on Monday June 08, 2020 @01:01PM (#23458338)
Stream cipher preserves bit-flips between ciphertext and plaintext, which is useful property for this application.

And many “military/diplomatic” ciphersystems used in second half of 20th century have various interesting properties wrt. error correction or non-propagation. My suspicion is that these properties are built by doing MAC-then-FEC-then-Encrypt and in some cases even by relying on limited error propagation of CBC mode. If you think about it, for these applications reliability is more interesting than strict authentication as the ciphertext of diplomatic “cable” or similar thing is sent through somewhat noisy channels and often was manually handled by fallible human radio operators while active MitM was not exactly feasible attack.

Re:Show HN: Puree – Password-based Uniform-Random-Equivalent... by fwip on Tuesday June 09, 2020 @02:45PM (#23469431)
Thank you for all this explanation, I appreciate it. :)