CryptDecrypt wrong key

From: Peodor (Peodor_at_discussions.microsoft.com)
Date: 02/25/05


Date: Thu, 24 Feb 2005 23:37:02 -0800

Hi,

Assume something is RSA public key encrypted with CryptEncrypt.

What happens if WRONG RSA private key is supplied when it is decrypted with
CryptDecrypt?
Is it detected that wrong key is supplied?
Is true or false returned? Last error?