On 29 March 2013 15:09, Zach <[email protected]> wrote: > I'm trying to do the following: > 1) Put a base64-encoded key (the normal one generated by openssl command > line tools) into a header file
Do you mean to put the actual key itself hardcoded into the header file?? This seems like a strange thing to do. PEM files can be read using the various functions described here: http://www.openssl.org/docs/crypto/pem.html > 2) Compile code with this key which will public-key encrypt a message. > To encrypt a message you need to use the EVP_Seal* functions described here: http://wiki.opensslfoundation.com/index.php/EVP_Asymmetric_Encryption_and_Decryption_of_an_Envelope http://www.openssl.org/docs/crypto/EVP_SealInit.html Matt ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [email protected] Automated List Manager [email protected]
