Re: Cryptographic Service Provider problem

From: Michel Gallant (neutron_at_nspxistar.ca)
Date: 10/31/03


Date: Fri, 31 Oct 2003 09:41:39 -0500


"Sky Fly" <nobody@blackhole.com> wrote in message
news:bntigl$15knvm$1@ID-18325.news.uni-berlin.de...
> Hi,

> This isn't a problem with not using the machine key store -
> I do this, and besides, this isn't an ASP. I'm wondering
> whether there are some files that the RSACryptoServiceProvider
> uses to do the encryption that may have been corrupted.
> Can any one confirm this, and let me know which files
> I may need to restore, or indeed if there is any other
> possible cause of this problem?
>

The actual default CSP providers, for each provider type, are described in the registry:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/security/security/setting_the_machine_default_csp.asp

e.g., on a typical W2k, the default Machine PROV_RSA_FULL, described by Type 001, is at:
  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\
            Provider Types\Type 001\Name

which is usually "Microsoft Strong Cryptographic Provider" (might be "Microsoft Enhanced
Cryptographic Provider v1.0" on XP+).
Note that for W2k, the default PROV_RSA_FULL provider is usually "Microsoft Base Cryptographic
Provider v1.0", but
again, XP+ is probably higher.

The dll file is described at key named-value:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\
            Provider\Microsoft Strong Cryptographic Provider\Image Path
which is usually "rsaenh.dll" (same dll as for Enhanced provider).

That dll is on your system path, and may be corrupted.
Also, the MS Base CSP file is "rsabase.dll".

 - Michel Gallant
   Visual Security MVP



Relevant Pages

  • Re: Anyone with experience writting a decoupled provider
    ... to add a decoupled provider. ... Thus I believe that the service has contacted the WMI core ... create a COM+ dll. ... this path I need to implemennt IWbemServices and IWbemProviderInit in this ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Windows XP Update (KB923980) "immer wieder"
    ... Bis dahin hatte ich noch nicht viele Programme installiert. ... adsnw.dll (ADs Netware 3.12 Provider DLL). ...
    (microsoft.public.de.german.windowsxp.sonstiges)
  • Re: Admin console cant connect
    ... Wanted to thank you for your help, Marin. ... These suggestions didn't correct my admin console problem, ... >COM cannot locate a provider referenced in the schema. ... >* Provider's DLL, or any of the DLLs on which it depends, is corrupt. ...
    (microsoft.public.sms.admin)
  • Re: WMI Failure
    ... Computer services via control panel yields same ... intended addressee, please notify the sender immediately and delete this ... >> COM cannot locate a provider referenced in the schema. ... Provider's DLL, or any of the DLLs on which it depends, is corrupt. ...
    (microsoft.public.windowsxp.wmi)
  • Re: WMI Failure
    ... COM cannot locate a provider referenced in the schema. ... Provider's DLL, or any of the DLLs on which it depends, is corrupt. ... intended addressee, please notify the sender immediately and delete this ... >>> An alternative to doing a clean install is to just do these steps which ...
    (microsoft.public.windowsxp.wmi)