Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've read that AES can work with three key sizes: 128 bits, 192 bits and 256 bits.

I'm trying to set up a LUKS partition with CryptSetup, using “aes-xts-plain64” cipher.

Why can I create keys of any length with CryptSetup, except for the fact they have to be a multiple of 8?

share|improve this question

migrated from Aug 11 '14 at 12:11

This question came from our site for software developers, mathematicians and others interested in cryptography.

This question appears to be off-topic because it is not about cryptography as defined in our help-center. “If your question is about usage of a specific cryptographic software (not its cryptographic internals), Super User is the right site.”. I have flagged the question for moderator attention with an according migration request. (So, please don’t cross-post your question; it will be moved accordingly by a mod if applicable.) – e-sushi Aug 6 '14 at 15:05
man cryptsetup (LUKS uses PBKDF2) – otus Aug 6 '14 at 15:13
And if you have any questions related to what’s explained in the man-pages that @otus pointed you to, you might want to take a look at the “CryptSetup FAQs” – e-sushi Aug 6 '14 at 15:20

You must log in to answer this question.