mirror of https://github.com/acidanthera/audk.git
SecurityPkg TcgStorageOpalLib: Update ComId for Block SID command.
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>
This commit is contained in:
parent
cb3077230f
commit
81c1b6df92
|
@ -261,6 +261,10 @@ ATA 8 Rev6a Table 68 7.57.6.2
|
||||||
|
|
||||||
#define TCG_RESERVED_COMID 0x0000
|
#define TCG_RESERVED_COMID 0x0000
|
||||||
|
|
||||||
|
// Defined in TCG Storage Feature Set:Block SID Authentication spec,
|
||||||
|
// ComId used for BlockSid command is hardcode 0x0005.
|
||||||
|
#define TCG_BLOCKSID_COMID 0x0005
|
||||||
|
|
||||||
#pragma pack(1)
|
#pragma pack(1)
|
||||||
typedef struct {
|
typedef struct {
|
||||||
UINT8 Reserved[6];
|
UINT8 Reserved[6];
|
||||||
|
|
|
@ -258,7 +258,7 @@ OpalBlockSid(
|
||||||
Session->Sscp,
|
Session->Sscp,
|
||||||
Session->MediaId,
|
Session->MediaId,
|
||||||
TCG_OPAL_SECURITY_PROTOCOL_2,
|
TCG_OPAL_SECURITY_PROTOCOL_2,
|
||||||
Session->OpalBaseComId,
|
TCG_BLOCKSID_COMID, // hardcode ComID 0x0005
|
||||||
1,
|
1,
|
||||||
Buffer,
|
Buffer,
|
||||||
BUFFER_SIZE
|
BUFFER_SIZE
|
||||||
|
|
Loading…
Reference in New Issue