The XTS mode of the Advanced Encryption Standard (AES) works within the constraints of hard disks while keeping the security that the AES algorithm provides. It's based on Phil Rogaway's XEX (Xor-Encrypt-Xor) construction and uses ciphertext stealing to handle sectors not containing a number of bytes equal to an integer multiple of the AES block size.