Thanks for the response Valery,
I am running IE v6.0.2800.1106 on Win98 and my understanding is this already
has strong cryptography built-in. Anyway, I tried to install the strong
cryptography pack for Win98, but it failed as it seems to only install on IE
v5.01. That would make sesne if IE6 already has strong crypto.
I will do more debugging and post again, but in the code snippet below it
looks like I am able to create the RSACryptoServiceProvider object and this
automatically generates a 1024 bit key. The exception seems to be raised as
I load the XML key that I have already extracted from the machine key store.
When debugging on Win98 the XML string looks the same as it does on WinXP, so
not sure what is going on here.
Thanks,
Scott.
> Hi,
> I'm not sure if there is strong cryptography pack for Windows 98 (it was
[quoted text clipped - 33 lines]
> > }
> > }
Scott - 17 Nov 2004 14:24 GMT
I have done some more testing and found that rsa.FromXmlString() works
correctly on both platforms. I can call rsa.ExportParameters() to confirm
the key details and they are identical in both Win98 and WinXP.
The CryptographicException is raised in the call to rsa.Decrypt(). The
stack trace shows it is actually raised within _DecryptKey(IntPtr hCSP,
IntPtr hPubKey, Byte[] rgbKey, Int32 dwFlags) which is called directly by
rsa.Decrypt(). Once again the exception message e.Message is "Unkown
failure; unable to generate error message."
I hope someone has seen this before and can help.
Thanks,
Scott.
> Thanks for the response Valery,
> I am running IE v6.0.2800.1106 on Win98 and my understanding is this already
[quoted text clipped - 49 lines]
> > > }
> > > }