This is my first question, so please tell me if I do something wrong :).
My problem is that I use
EVP_DecryptInit(&ctx1, EVP_des_ecb(), tmpkey, NULL); EVP_DecryptUpdate(&ctx1, keysigout, &outlu ,keysigin, keysigfilelength); EVP_DecryptFinal(&ctx1, keysigout, &outlf); printf("DECLEN:%i",outlu + outlf);
to decrypt a binary file. The file is 248 bytes long, but only printf tells me that EVP decrypted 240 bytes. keyigfilelength is 248 and should report that it needs to decrypt 248 bytes.
I do not understand why this does not work and will be happy if you can enlighten me.
Edit: I just encrypted the file manually with the command
openssl enc -e -des-ecb -in test.txt -out test.bin -K 00a82b209cbeaf00
and it grew by 8 bytes: O. I still donβt know where they came from, but I donβt think that the general error that I have in my program is caused by this.
The context of this whole problem is an information security course at my university. We got similar tasks with different algorithms, but even the one who successfully completed his program could not determine where the problem is in my program.
Can I publish my entire program for you?
source share