BUG: CryptDestroyHash with HMAC Hash Fails with NTE_BAD_ALGID (185134)



The information in this article applies to:

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

This article was previously published under Q185134

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.

Modification Type:MajorLast Reviewed:3/15/2004
Keywords:kbAPI kbbug kbCrypt kbKernBase kbpending KB185134