Reputation: 31
I am stuck on this problem where I need to do a encrypt-decrypt on a large file (>5MB) using asymmetric key with the help of OpenSSL.
Below is a brief description of my requirement:-
I have found a number of different ways of doing it on the Internet. The most appealing way to me is using OpenSSL S/MIME encrypt/decrypt
. But I didn't find a suitable library/tool for doing this using C programming language. All the examples that I've found were mostly using a console application.
There were some sample C programs but those were not doing the encryption and decryption using asymmetric keys; they used a random 128 bit key and IV instead.
Could anyone please help me by providing some examples.
Upvotes: 0
Views: 1144
Reputation: 12108
Do not forget that OpenSSL is open-source. If you want to see the source code of "openssl smime" command than you need to take a look at apps/smime.c file in openssl source code.
Upvotes: 1