Re: RSA with libcrypto

2008-11-25 Thread chamara caldera
Hi all, It works,The problem was the strlen(to) as you mention. thank you for your reply. cheers

RE: RSA with libcrypto

2008-11-24 Thread Dave Thompson
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Bill Colvin Sent: Monday, 24 November, 2008 08:48 From is filled with random data. It is not a zero terminated text string, therefore, strlen(from) will probably be invalid. Well, partly filled; but the rest is uninitialized, a

RE: RSA with libcrypto

2008-11-24 Thread Bill Colvin
ssl-users@openssl.org Subject: RSA with libcrypto Hi all, I am too new to this library and i am trying to do encrypt and decrypt in RSA. But it gives a error in decrypting. This is my code #include #include #include #include #include main(){ ERR_load_RSA_stri

RSA with libcrypto

2008-11-24 Thread chamara caldera
Hi all, I am too new to this library and i am trying to do encrypt and decrypt in RSA. But it gives a error in decrypting. This is my code #include #include #include #include #include main(){ ERR_load_RSA_strings(); ERR_load_crypto_strings(); RSA *rsa = RSA_generate_key(1024, 3,