My idea is to convert the rsa into buf and compress it.

int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen,
    unsigned char *in, int ilen);
int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen,
    unsigned char *in, int ilen);

Are these functions fit your needs?


At 2011-01-13 18:09:30,"Muneeswaran Raju" <hieswar...@gmail.com> wrote:
Hi, 
I want to generate the RSA keys and store it in a buffer and send it to other 
modules. 
What is the efficient way of getting the private keys into buffer. I need to 
utilise very less memory for storing the RSA keys. 


Thanks
Muneeswaran.R

Reply via email to