Microsoft KB Archive/185134

{|
 * width="100%"|

BUG: CryptDestroyHash with HMAC Hash Fails with NTE_BAD_ALGID

 * }

Q185134

-

The information in this article applies to:


 * Microsoft Win32 Application Programming Interface (API), used with:
 * the operating system: Microsoft Windows NT 4.0
 * Microsoft Windows 95

-

SYMPTOMS
When you call CryptDestroyHash with an HMAC hash, it fails with NTE_BAD_ALGID.

CAUSE
This is a known bug.

RESOLUTION
Do not call CryptDestroyHash with HMAC hash objects, or ignore the error. Note that the memory associated with the HMAC hash will leak.

STATUS
We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.

Additional query words:

Keywords : kbAPI kbCrypt kbKernBase kbDSupport kbGrpDSKernBase

Issue type : kbbug

Technology : kbAudDeveloper kbWin32sSearch kbWin32API