Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Thanks a lot. I will have a look at source code. However, regarding answer two, how would it cover 448 Bytes of encryption, if the XTS modes operates on data units of 512 Bytes which are divided in 128 Bytes block. (source: truecrypt71a.com/documentation/technical-details/…) Commented Nov 16, 2024 at 8:06
  • @BinomialBear: AES-XTS supports arbitrary input length, and that’s really the whole point of the mode. The “S” stands for “Ciphertext Stealing”: If the last plaintext block is shorter than the block size, then XTS “steals” part of the previous ciphertext block and appends it to the plaintext, so that the plaintext length is always a multiple of the block size. See this diagram for a good visualization. Commented Nov 16, 2024 at 8:52
  • Ok, thanks a lot for pointing that out. I really struggled understanding it before. Finally, I can continue working on my project and incorporate what you just taught me. Have a good day then. Commented Nov 16, 2024 at 11:19