Maybe you could cast the contents of your structure to a string, encrypt this string 
and then cast the string back to your structure type.

Marc.

> -----Message d'origine-----
> De : Jayashree Kanchana [mailto:[EMAIL PROTECTED] 
> Envoyé : mardi 3 août 2004 16:00
> À : [EMAIL PROTECTED]
> Objet : RSA encryption - to encrypt a c structure ??
> 
> 
> 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