Hello,
I want to create a program that encrypts a text file using DES. I am using the openssl/des.h library but I got stuck and I can't move forward anymore. Here is the code I got so far.
The code you posted above have a number of problems in addition to the missing SSL calls. If you want to use your own loop, you need to first fix your code so it can copy a plain text file before adapting it to encrypt the data.
If you are not set on ECB mode, then this simple sample might help.