I tried playing around with simple encryption using DES. I can't explain why the cli utility and the library interface seem to be producing different output.
Detailed on Stackoverflow here: https://stackoverflow.com/questions/26986381/can-someone-explain-the-difference-in-openssl-cli-and-c-des-output