On 29 March 2013 15:09, Zach <lace...@roboticresearch.com> 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                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to