I am running one of the test vectors for AES-128-ECB given at http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf . I am storing the plain text in "plain" file and resultant encrypted text in "cipher" file. OpenSSL being used by me is not build with FIPS support. I am unable to get results given in the test vector. Am I doing something wrong or is this expected result for OpenSSL without FIPS support ? Thanks,
Test Vector
Key 2b7e151628aed2a6abf7158809cf4f3c <===Key
Block #1
Plaintext 6bc1bee22e409f96e93d7e117393172a <==Plaintext
Input Block 6bc1bee22e409f96e93d7e117393172a
Output Block 3ad77bb40d7a3660a89ecaf32466ef97
Ciphertext 3ad77bb40d7a3660a89ecaf324 <== Ciphertext
My Results
[root@fn] echo 6bc1bee22e409f96e93d7e117393172a > plain
[root@fn] cat plain
6bc1bee22e409f96e93d7e117393172a
[root@fn] openssl enc -aes-128-ecb -p -nosalt -K 2b7e151628aed2a6abf7158809cf4f3c -in plain -out cipher
key=2B7E151628AED2A6ABF7158809CF4F3C
[root@fn] cat cipher
�w*E�苅�Pg���
[root@fn] hexdump -C cipher
00000000 cc fd 74 a0 75 78 42 23 4c cb ef 59 85 af 68 b1 <===
00000010 5f c0 01 83 c0 e8 73 8b e4 6a 73 e8 58 36 9b 4d
00000020 cb 77 1e 2a 45 1b 61 dd 85 1a f0 50 67 ab cf fc
00000030