-1

I was wondering how to encrypt by doing a AES-Twofish-Serpent encryption. Does this mean I encrypt in AES first then after that in Twofish, and after that in Serpent (three separate encryptions). In truecrypt they talk about cascading in xts mode, but I was having trouble finding a tutorial on how to do it.

3
  • en.wikipedia.org/wiki/…
    – buherator
    Aug 4, 2013 at 19:41
  • That just explains what it is, not how to do it
    – abden003
    Aug 4, 2013 at 20:29
  • 1
    I didn't mean to answer your question (this is why I wrote a comment, not an answer), just wanted to give some pointers to the solution. The linked article and the referenced CTS article and NIST publication actually describe the algorithm for XTS.
    – buherator
    Aug 9, 2013 at 12:25

1 Answer 1

2
  • Generate three distinct keys from the original encryption key using a Key Derivation Function (KDF). For example, if you're using a 128-bit key, derive a 384-bit key from it with the KDF and split the result in three 128-bit keys.
  • Encrypt with AES using the first key, then encrypt the output with Twofish using the second key, then encrypt the new output with Serpent using the third key.

You would need to check the TrueCrypt source code if you want to do exactly like them (I don't know the exact mechanism they use for deriving the keys).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .