CryptXmlSetHMACSecret function
The CryptXmlSetHMACSecret function sets the HMAC secret on the handle before calling the CryptXmlSign or CryptXmlVerify function.
Syntax
HRESULT WINAPI CryptXmlSetHMACSecret(
_In_ HCRYPTXML hSignature,
_In_ const BYTE *pbSecret,
ULONG cbSecret
);
Parameters
- hSignature [in]
-
The handle of the XML Signature element.
- pbSecret [in]
-
A pointer to a buffer that contains a block of bytes. The pointer must be valid during the call to the CryptXmlSign or CryptXmlVerify function.
- cbSecret
-
The size, in bytes, of the buffer pointed to by the pbSecret parameter.
Return value
If the function succeeds, the function returns zero.
If the function fails, it returns an HRESULT value that indicates the error.
Requirements
|
Minimum supported client |
Windows 7 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|