RE: how to verify if the public_key is valid to decrypt data using RSA_public_decrypt()

2008-11-18 Thread Dave Thompson
> From: [EMAIL PROTECTED] On Behalf Of Shaun R. > Sent: Monday, 17 November, 2008 18:50 > I'm using RSA to encrypt/decrypt some text. I encrypt the data using the > private key and then decrypt it using RSA_public_decrypt(). One thing i This is not really encryption, because it does not provide

RE: how to verify if the public_key is valid to decrypt data using RSA_public_decrypt()

2008-11-17 Thread David Schwartz
> I'm using RSA to encrypt/decrypt some text. I encrypt the data using the > private key and then decrypt it using RSA_public_decrypt(). One thing i > noticed was that if the data was not encrypted using the correct > private key > that RSA_public_decrypt() will just set the output to giberish.

how to verify if the public_key is valid to decrypt data using RSA_public_decrypt()

2008-11-17 Thread Shaun R.
I'm using RSA to encrypt/decrypt some text. I encrypt the data using the private key and then decrypt it using RSA_public_decrypt(). One thing i noticed was that if the data was not encrypted using the correct private key that RSA_public_decrypt() will just set the output to giberish. Is ther