Re: RSA encryption/decryption with OpenSSL.

2013-08-22 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of mycompuser > Sent: Wednesday, 21 August, 2013 01:35 > Thanks for the reply. > I do have access to the server code but cannot change it's > implementation to > suite my requirement as the server is serving other clients in other > platforms as

RE: Re: RSA encryption/decryption with OpenSSL.

2013-08-21 Thread mycompuser
Hi Dave, Thanks for the reply. I do have access to the server code but cannot change it's implementation to suite my requirement as the server is serving other clients in other platforms as well. Below is the java code to encrypt an AES symmetric key with the public key it recieves from the clie

Re: RSA encryption/decryption with OpenSSL.

2013-08-21 Thread mycompuser
Hi, Thanks for the reply. "That's because it's not a raw public key; it's a base64 encoded structure containing the key parts. It's a lot more than just stripping the header and footer." I was not aware of this. But I think my requirement is to send the public key in Base64 encoded structur

RE: Re: RSA encryption/decryption with OpenSSL.

2013-08-20 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Ken Goldman > Sent: Tuesday, 20 August, 2013 08:08 > On 8/19/2013 3:15 PM, mycompuser wrote: > > But the only > > problem that I currently face is that the key pair > generated by OpenSSL has > > headers and footers of the form -BEGIN RSA P

Re: RSA encryption/decryption with OpenSSL.

2013-08-20 Thread Ken Goldman
On 8/19/2013 3:15 PM, mycompuser wrote: But the only problem that I currently face is that the key pair generated by OpenSSL has headers and footers of the form -BEGIN RSA PUBLIC KEY- -END RSA PUBLIC KEY- for public key likewise there is similar header and footer for private key a

Re: RSA encryption/decryption programming

2005-05-10 Thread Sebastian
Sure, take a look at http://www.openssl.org/docs/crypto/crypto.html. Renember to link against libcrypto... Sebastian cranium2003 wrote: hello, I want to write a RSA encryption decryption program in C that encrypt data on one pc sends that encrypted data to other pc and get it decrypted on th

Re: RSA Encryption/Decryption.

2005-05-09 Thread Layla
Thank you :)Sebastian <[EMAIL PROTECTED]> wrote: Hmm,take a look at routines like RSA_new() to create RSA structures. As you coded 'sizeof apub', this will return the size of a _pointer_ - assuming a 32-bit architecture you will get round about four bytes ;-).See: http://www.openssl.org/docs/crypto

Re: RSA Encryption/Decryption.

2005-05-09 Thread Sebastian
Hmm, take a look at routines like RSA_new() to create RSA structures. As you coded 'sizeof apub', this will return the size of a _pointer_ - assuming a 32-bit architecture you will get round about four bytes ;-). See: http://www.openssl.org/docs/crypto/RSA_new.html The runtime error is caused b

Re: RSA encryption/decryption time confusion (discrepancy?)

2005-03-03 Thread Nils Larsch
Vishwas wrote: Dear SSLites, Please observe the following operations. I do the following:- key1 = RSA_generate_key(n, e1, NULL, NULL); num = RSA_private_encrypt(plen, ptext_ex, ctext, key1, RSA_PKCS1_PADDING); RSA_public_decrypt(num, ctext, ptext, key1, RSA_PKCS1_PADDING); Average encryption time i