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.
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.