BUG: CryptDestroyHash with HMAC Hash Fails with NTE_BAD_ALGID

ID: Q185134

The information in this article applies to:

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.

Keywords          : kbAPI kbKernBase kbGrpKernBase 
Version           : WINNT:4.0
Platform          : winnt
Issue type        : kbbug
Solution Type     : kbpending

Last Reviewed: May 7, 1998