Reputation: 549
Am writing code in Linux C. I need to encrypt and decrypt files using openssl. Currently Am using system command "des3 -e -nosalt -k 0123456789012345 -in inp_file -out out_file" for encrypting and "des3 -d -nosalt -k 0123456789012345 -in inp_file -out out_file" for decrypting. Where shall I get sample code to do the same with C API's.
Upvotes: 4
Views: 9906
Reputation:
I would look here: http://www.openssl.org/docs/crypto/EVP_EncryptInit.html#EXAMPLES
and here: http://www.nlnetlabs.nl/downloads/publications/hsm/hsm_node17.html
Upvotes: 3