SIGN HMAC Command

HMAC data.

Description

Perform an HMAC operation in device and return the result.

Shell Example

Perform an HMAC operation using the HMAC Key 0x7cf2:

yubihsm> hmac 0 0x7cf2 666f6f626172 4c17e17300a51a3f8aeeba131e9c680e4e40b429aa1d547807efd8e3d95ccd39

Protocol Details

Command

Tc = 0x53
Lc = 2 + LD
Vc = I || D

Parameters:

I := Object ID of the HMAC Key (2 bytes)

D := Data to HMAC

Response

Tr = 0xd3
Lr = LR
Vr = R

Parameters:

R := HMAC Response, 20, 32, 48 or 64 bytes depending on the Algorithm.