Microsoft KB Archive/259484

{|
 * width="100%"|

INFO: CryptEncrypt and CryptDecrypt Functions Are Supported with the French Locale on Windows 2000

 * }

Q259484

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK), on platform(s):
 * Microsoft Windows NT Workstation versions 4.0, 4.0 SP6a
 * Microsoft Windows NT Server version 4.0 SP6a
 * Microsoft Windows 2000 Professional
 * Microsoft Windows 2000 Server

-

SUMMARY
Because of French Cryptographic import laws, the CryptEncrypt and CryptDecrypt functions return NTE_PERM on Windows NT 4.0 when the French Locale is chosen. A change in the import laws removed this restriction on Windows 2000.

To enable CryptEncrypt and CryptDecrypt on computers that are running Windows NT 4.0, Service Pack (SP) 6a, the following registry key needs to be created:

"HKEY_LOCAL_MACHINE\Software\Microsoft\Cryptography\defaults\CheckInfo" A value named Mask should be created with a REG_DWORD value of 0xFF.

Additional query words:

Keywords : kbAPI kbKernBase kbOSWin2000 kbSDKWin32 kbSecurity kbDSupport kbGrpDSKernBase

Issue type : kbinfo

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch