Posted By: SecretSoftware | Apr 18th, 2007 @ 1:59 PM
page 1 of 1
Comments: 4 | Views: 1031
SecretSoftware
SecretSoftware
Code to live, but Live to code.
Hi,
I am getting an error: Error occurred while decoding OAEP padding.
while decrypting a message that was encrypted using the private key of the RemoteParty (OAEP = true), using the public key of the RemoteParty in my application.

when both the encrypting (At Remote) and decrypting (my side) are done with OAEP =fasle, i get error : Bad Key.


Why is this happening? Does RSACSP.Decrypt, not accept a public key?

Any Ideas???


PS: Platform = Windows Vista.


I know your post is too old so i am posting the reply with very much high expectations to get the answer as i am also facing the same problem

Sven Groot
Sven Groot
My name has 9 letters. Coincidence? I think not...

Generally the point of assymetric encryption is that you encrypt with the public key and decrypt with the private key, not the other way around.

littleguru
littleguru
<3 Seattle

Isn't the other way around done for signing something?

Sven Groot
Sven Groot
My name has 9 letters. Coincidence? I think not...

Pretty much, yeah.

page 1 of 1
Comments: 4 | Views: 1031
Microsoft Communities