Hi,

I can't get the RSA encryption to work so i looked at some examples.
In the rsa_test.c i tried to rewrite to source to use generated keys instead of
the hardcoded ones. But when I do that it doesn\t work anymore.
I tried to find why when i stumbled upon a statement which I don't understand.
In the top of the source there is a #define SetKey, a memcpy is done. There's my
problem. The memcpy seems to copy the ctext_ex char array to a charpointer but
never uses the vhar pointer anymore, what's the use of copying when you never
use it I think. When I give the sizeof(ctext_ex)-1 to clen, and use gereatekeys
the encryption doesn't work anymore.

Do you understand the problem ?? (mainly, why is the copy done ? and why doesn't
the encrypt work when i simply give clen = sizeof(ctext_ex) -1


Thanks,

Thijs

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

Reply via email to