The ComId for Block SID authentication command is
0x0005 according to "TCG Storage Feature Set: Block
SID Authentication Specification Version 1.0.0". Update code to
follow this spec requirement.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
\r
#define TCG_RESERVED_COMID 0x0000\r
\r
+// Defined in TCG Storage Feature Set:Block SID Authentication spec,\r
+// ComId used for BlockSid command is hardcode 0x0005.\r
+#define TCG_BLOCKSID_COMID 0x0005\r
+\r
#pragma pack(1)\r
typedef struct {\r
UINT8 Reserved[6];\r
Session->Sscp,\r
Session->MediaId,\r
TCG_OPAL_SECURITY_PROTOCOL_2,\r
- Session->OpalBaseComId,\r
+ TCG_BLOCKSID_COMID, // hardcode ComID 0x0005\r
1,\r
Buffer,\r
BUFFER_SIZE\r