I am testing OpenSSL by executing the Known Answer tests provided here.
When using AES-128-CBC with the following parameters:
KEY = 00000000000000000000000000000000 IV = 00000000000000000000000000000000 Input = f34481ec3cc627bacd5dc3fb08f273e6
the output should be the following: 0336763e966d92595a567cc9ce537f5e
I executed the following command in my terminal:
openssl aes-128-cbc -e -in in.txt -out out.txt -K 00000000000000000000000000000000 -iv 00000000000000000000000000000000 -p -nosalt
where the in.txt
file contains my input, I get an output file with gibberish. I am assuming that it is being encrypted correctly because when I decrypt the same file with the same parameters, I get my input back.
I also tried an online tool to verify the result provided in the online document, extranet.cryptomathic.com which also gives the correct output.
How can I view the output in the format provided in the AESAVS document? Is the method that I have applied for encrypting the plaintext file correct or am I missing something here?