Search code examples
aesrijndaelmanagedencryption-symmetric

AES / Rijndael Test Vectors : what padding mode?


So I've been looking at these test vectors for the Known Answer Test for AES / Rijndael (with 128-bit block) in CBC mode, and I wonder: what kind of padding do they use? PKCS7?


Solution

  • The Zip archive you link to contains a file called katmct.pdf which describes how the tests are computed. There is no padding; for each test, the data already has the 128-bit length that the algorithm expects.