News for hackers. Stuff that matters.
Re:Ask HN: How secure is the encryption offered by OS X's Di... by chmike on Monday June 19, 2017 @01:40AM (#14584803)
AES-CTR can be used instead. AES-CTR generates a pseudo-random sequence of bits which is xored with the data to encrypt. The pseudo random bit sequence is generated by encrypting a counter that is incremented. This allows to encrypt or decrypt any randomly chose segment of data by using the data offset as encrypted counter value.
Re:Ask HN: How secure is the encryption offered by OS X's Di... by dchest on Monday June 19, 2017 @02:48AM (#14584999)
Homework: after encrypting a file, I edit it, and the block is changed and re-encrypted with the same block number as a counter.

Question: can you discover something about ciphertext which allows you to guess plaintext? If so, what?

Completing this homework will introduce you to disk encryption theory and will help understand the need for XTS-like modes.

Re:Ask HN: How secure is the encryption offered by OS X's Di... by resf on Monday June 19, 2017 @04:19AM (#14585350)
Is it a realistic threat though? You're not supposed to use your device after it has been compromised. If you don't _know_ your device has been compromised you are totally fucked anyway.
Re:Ask HN: How secure is the encryption offered by OS X's Di... by dchest on Monday June 19, 2017 @06:59AM (#14585943)
Yes, thread model for full disk encryption is defined for an attacker that has ability to read the encrypted contents of disk at any point in time.

CTR mode is also malleable at bit level, while XTS is less so (this matters when an attacker can modify the encrypted contents).

Re:Ask HN: How secure is the encryption offered by OS X's Di... by barrkel on Monday June 19, 2017 @05:56AM (#14585711)
What if you're using a hosting provider and using full-disk encryption to stop the hosting provider from having access to your data by yanking the drives?