I have read that there is no corelation between the key length and the block length in AES. But it doesn't make sense to me, because the key will XOR the block, how they can be in different lengths?
-
3`AES` is not a simple `XOR`. – Afshin Oct 21 '18 at 06:46
2 Answers
There is no relationship between key size and block size in AES
, because it it not a simple XOR
. Block size is always 128 bits, but key size can be 128, 192, and 256 bits based on algorithm rounds.
AES
is a complex algorithm with a lot of steps. key is used in key scheduler and then its result will be used in encryption process. You can check details in here.

- 8,839
- 1
- 18
- 53
-
So a longer key will derive more fixed length key? The length of the key affects the number of subkeys and rounds? – Eran Nahshon Oct 21 '18 at 06:52
-
1@EranNahshon yes. 128, 192, and 256 bit key is used for a 10, 12, and 14 rounds algorithm. If you want to understand it, please read that wikipedia page at least. – Afshin Oct 21 '18 at 06:54
AES has 10, 12 or 14 rounds. Having that many separate keys is clumsy to handle and keep secure. Instead a single key is used to generate the 11, 13 or 15 round keys that are used, one for each round plus one extra. The process of deriving the round keys from the initial single key is called the Round Schedule. The round keys do not have to be the same size as the initial single key.

- 15,344
- 1
- 24
- 38