First of all, you need to write functions that do serialization and de-serialization of your own C structure.

Think about network programming, how do you send a C structure using sockets to a receipient? And having the receipient assemble it back into a C structure?

Without such functions, any solution is just a hack.





Jayashree Kanchana wrote:
Hi,

I am hoping that someone might have come across this problem and will be
able to help me.

I am trying to use openssl to encrypt a "c structure" instead of just a
"string", is there any function in openssl that I could use?

I have a RSA key structure that is already created and I am able to
encrypt and decrypt just a "string" using RSA_public_encrypt command and this RSA
key pair .

Thanks in advance,
Jayashree

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]



______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]

Reply via email to