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 <[email protected]> Cc: Feng, Tian <[email protected]> --- SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalCore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalCore.c b/SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalCore.c index 2db5ffe..e4e4399 100644 --- a/SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalCore.c +++ b/SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalCore.c @@ -258,7 +258,7 @@ OpalBlockSid( Session->Sscp, Session->MediaId, TCG_OPAL_SECURITY_PROTOCOL_2, - Session->OpalBaseComId, + 0x0005, // hardcode ComID 0x0005 1, Buffer, BUFFER_SIZE -- 2.6.4.windows.1 _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

