Export (0) Print
Expand All
Expand Minimize

HMAC_INFO structure

The HMAC_INFO structure specifies the hash algorithm and the inner and outer strings that are to be used to calculate the HMAC hash.

Syntax


typedef struct _HMAC_Info {
  ALG_ID HashAlgid;
  BYTE   *pbInnerString;
  DWORD  cbInnerString;
  BYTE   *pbOuterString;
  DWORD  cbOuterString;
} HMAC_INFO, *PHMAC_INFO;

Members

HashAlgid

Specifies the hash algorithm to be used.

pbInnerString

A pointer to the inner string to be used in the HMAC calculation. The default inner string is defined as the byte 0x36 repeated 64 times.

cbInnerString

The count of bytes in pbInnerString. The CSP uses the default inner string if cbInnerString is equal to zero.

pbOuterString

A pointer to the outer string to be used in the HMAC calculation. The default outer string is defined as the byte 0x5C repeated 64 times.

cbOuterString

The count of bytes in pbOuterString. The CSP uses the default outer string if cbOuterString is equal to zero.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Wincrypt.h

See also

ALG_ID
CryptCreateHash
CryptSetHashParam

 

 

Community Additions

ADD
Show:
© 2014 Microsoft