I'm having trouble getting OpenSSL's ciphertext to match the NIST test vectors.
Example : in "ecb_e_m.txt" from http://csrc.nist.gov/archive/aes/rijndael/rijndael-vals.zip, the first test is (in hex)
Key = 00000000000000000000000000000000 Plaintext = 00000000000000000000000000000000 Ciphertext = C34C052CC0DA8D73451AFE5F03BE297F
I save the plaintext (in binary) to a file called pt, and run
openssl aes-128-ecb -nosalt -K 00000000000000000000000000000000 -p -nopad -in pt -out ct
Upon looking at the contents of ct, it contains
66 E9 4B D4 EF 8A 2C 3B 88 4C FA 59 CA 34 2B 2E
What am I doing wrong?
I have used the 128-bit ECB test vectors from this page : http://www.inconteam.com/software-development/41-encryption/55-aes-test-vectors#aes-ecb-128, and the ciphertext OpenSSL generates for these DOES match the given ciphertext.