HMAC_INFO

The HMAC_INFO structure is used to specify the hash algorithm, and the inner and outer strings that are to be used in calculating the HMAC hash.

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
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 will use 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 will use the default outer string if pbOuterString is equal to zero.

See Also

ALG_ID, HMAC, CryptCreateHash, CryptSetHashParam