BUG: CryptDestroyHash with HMAC Hash Fails with NTE_BAD_ALGID

ID: Q185134


The information in this article applies to:
  • Microsoft Win32 Application Programming Interface (API), used with:
    • 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 kbGrpKernBase
Version : winnt:4.0
Platform : winnt
Issue type : kbbug


Last Reviewed: December 29, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.