SESSION MESSAGE Command

Send a command over an established session.

Description

Sends a wrapped command for a previously established session. The command is encrypted and authenticated.

Shell Example

Send an echo over Session 0:

yubihsm> echo 0 0xff 1
Response (1 bytes):
ff

Protocol Details

Command

Tc = 0x05
Lc = 1 + Linner_c + 8
Vc = S || Ic || Mc

Parameters:

S := Session ID (1 byte)

Linner_c/inner_r := Length of the encrypted inner command / response (2 bytes)

Mc/r := CMAC of the outer command / response (8 bytes)

Response

Tr = 0x85
Lr = 1 + Linner_r + 8
Vr = S || Ir || Mr