Is an exception being thrown at all?
Yes, the exception message is "WinCAPI:RSA privateKeyDecrypt - Error Decrypting PKCS1_5 padded RSA encrypt" in WinCAPICryptoKeyRSA.cpp.
Hmm. Which is a XSECCryptoException. So what I might do is put a catch clause in there for anything derived from XSECCryptoException and continue. If anything else comes through (which would indicate a more serious problem), then that would fall through to the (...) catch clause and get re-thrown.
Will check something in - hopefully tonight.
Cheers,
Berin
