Windows error 0x80090003, -2146893821

Detailed Error Information

NTE_BAD_KEY[1]

MessageBad Key.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode9 (0x009)
NameFACILITY_SSPI[2][1]
DescriptionThe source of the error code is the Security API layer.[2][1]
Error Code3 (0x0003)

Questions

0votes
0answers

Example with msdn for creating HMAC in CryptoApi does not work

I am trying to create an HMAC the same as shown on the MSDN site https://docs.microsoft.com/ru-ru/windows/win32/seccrypto/example-c-program--creating-an-hmac?redirectedfrom=MSDN. I just copied the code and ran the compile command g++ hmac_create.c -o result and i get compile error error: 'CALG_HMAC' undeclared (first use in this function); did you mean 'CALG_MAC'? 115 | CALG_HMAC, [...] read more
c
msdn
cryptoapi

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0