Skip to content

Commit

Permalink
Change prefix
Browse files Browse the repository at this point in the history
Change gEdkiiDeviceSignatureDatabaseGuid and
EDKII_DEVICE_SECURITY_DATABASE prefix

Signed-off-by: Wenxing Hou <wenxing.hou@intel.com>
  • Loading branch information
Wenxing-hou authored and jyao1 committed Feb 5, 2024
1 parent 93cb538 commit 87090d3
Show file tree
Hide file tree
Showing 18 changed files with 25 additions and 28 deletions.
3 changes: 0 additions & 3 deletions DeviceSecurityTestPkg/DeviceSecurityTestPkg.dec
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
[Guids]
gEfiDeviceSecurityPkgTokenSpaceGuid = { 0x506945e8, 0x7603, 0x49ee, { 0xbf, 0x36, 0x6c, 0x28, 0x74, 0xca, 0x26, 0xdc }}

## Include/Guid/DeviceSecurity.h
gEdkiiDeviceSignatureDatabaseGuid = {0xb9c2b4f4, 0xbf5f, 0x462d, {0x8a, 0xdf, 0xc5, 0xc7, 0xa, 0xc3, 0x5d, 0xad}}

gEfiDeviceSecurityPkgTestConfig = { 0x6761aa6c, 0x41bf, 0x4a38, { 0x84, 0x93, 0x26, 0x6b, 0x11, 0x98, 0x44, 0xfc }}

gEfiDeviceSecuritySpdmUidGuid = {0xe37b5665, 0x5ef9, 0x4e7e, {0xb4, 0x91, 0xd6, 0x78, 0xab, 0xff, 0xfb, 0xcb }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
CryptlibWrapper

[Guids]
gEdkiiDeviceSignatureDatabaseGuid ## CONSUMES
gEfiDeviceSignatureDatabaseGuid ## CONSUMES
gEfiDeviceSecurityPkgTestConfig ## CONSUMES

[Protocols]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
gEfiPeiReadOnlyVariable2PpiGuid ## CONSUMES

[Guids]
gEdkiiDeviceSignatureDatabaseGuid ## CONSUMES
gEfiDeviceSignatureDatabaseGuid ## CONSUMES
gEdkiiCertSpdmCertChainGuid ## CONSUMES

[Protocols]
Expand Down
10 changes: 5 additions & 5 deletions DeviceSecurityTestPkg/Test/DeployCert/DeployCert.c
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,8 @@ MainEntryPoint (
);
}
Status = gRT->SetVariable (
EDKII_DEVICE_SECURITY_DATABASE,
&gEdkiiDeviceSignatureDatabaseGuid,
EFI_DEVICE_SECURITY_DATABASE,
&gEfiDeviceSignatureDatabaseGuid,
EFI_VARIABLE_NON_VOLATILE |
EFI_VARIABLE_BOOTSERVICE_ACCESS |
EFI_VARIABLE_RUNTIME_ACCESS,
Expand Down Expand Up @@ -631,8 +631,8 @@ MainEntryPoint (
MeasureVariable (
PCR_INDEX_FOR_SIGNATURE_DB,
EV_EFI_SPDM_DEVICE_POLICY,
EDKII_DEVICE_SECURITY_DATABASE,
&gEdkiiDeviceSignatureDatabaseGuid,
EFI_DEVICE_SECURITY_DATABASE,
&gEfiDeviceSignatureDatabaseGuid,
SignatureList,
SignatureListSize
);
Expand All @@ -641,7 +641,7 @@ MainEntryPoint (

Status = gRT->SetVariable (
L"PrivDevKey",
&gEdkiiDeviceSignatureDatabaseGuid,
&gEfiDeviceSignatureDatabaseGuid,
EFI_VARIABLE_NON_VOLATILE |
EFI_VARIABLE_BOOTSERVICE_ACCESS |
EFI_VARIABLE_RUNTIME_ACCESS,
Expand Down
2 changes: 1 addition & 1 deletion DeviceSecurityTestPkg/Test/DeployCert/DeployCert.inf
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
ShellLib

[Guids]
gEdkiiDeviceSignatureDatabaseGuid ## PRODUCE
gEfiDeviceSignatureDatabaseGuid ## PRODUCE
gEfiCertX509Guid
gEfiDeviceSecurityPkgTestConfig ## PRODUCE
gEfiCertSha256Guid
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
CryptlibWrapper

[Guids]
gEdkiiDeviceSignatureDatabaseGuid ## CONSUMES
gEfiDeviceSignatureDatabaseGuid ## CONSUMES

[Protocols]
gEdkiiDeviceIdentifierTypePciGuid ## PRODUCES
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ SpdmResponderDataSignFunc (

Status = GetVariable2 (
L"PrivDevKey",
&gEdkiiDeviceSignatureDatabaseGuid,
&gEfiDeviceSignatureDatabaseGuid,
&PrivatePem,
&PrivatePemSize
);
Expand Down
2 changes: 1 addition & 1 deletion DeviceSecurityTestPkg/Test/SpdmStub/SpdmStub.inf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
CryptlibWrapper

[Guids]
gEdkiiDeviceSignatureDatabaseGuid ## CONSUMES
gEfiDeviceSignatureDatabaseGuid ## CONSUMES
gEfiDeviceSecurityPkgTestConfig ## CONSUMES

[Protocols]
Expand Down
2 changes: 1 addition & 1 deletion DeviceSecurityTestPkg/Test/Tcg2DumpLog/Tcg2DumpLog.c
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ typedef struct {
VARIABLE_TYPE mSecureBootDatabaseVariableType[] = {
{ EFI_IMAGE_SECURITY_DATABASE, &gEfiImageSecurityDatabaseGuid },
{ EFI_IMAGE_SECURITY_DATABASE1, &gEfiImageSecurityDatabaseGuid },
{ EDKII_DEVICE_SECURITY_DATABASE, &gEdkiiDeviceSignatureDatabaseGuid },
{ EFI_DEVICE_SECURITY_DATABASE, &gEfiDeviceSignatureDatabaseGuid },
};

BOOLEAN
Expand Down
2 changes: 1 addition & 1 deletion DeviceSecurityTestPkg/Test/Tcg2DumpLog/Tcg2DumpLog.inf
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
[Guids]
gEfiAcpiTableGuid
gEfiImageSecurityDatabaseGuid
gEdkiiDeviceSignatureDatabaseGuid
gEfiDeviceSignatureDatabaseGuid

[Protocols]
gEfiTcg2ProtocolGuid ## CONSUMES
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ SpdmResponderDataSignFunc (
Status = VariablePpi->GetVariable (
VariablePpi,
L"PrivDevKey",
&gEdkiiDeviceSignatureDatabaseGuid,
&gEfiDeviceSignatureDatabaseGuid,
NULL,
&PrivatePemSize,
(VOID *)PrivatePem
Expand Down
4 changes: 2 additions & 2 deletions DeviceSecurityTestPkg/TestPei/SpdmStubPei/SpdmStubPei.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ MainEntryPoint (
SignatureList = AllocateZeroPool (SignatureListSize);
Status = VariablePpi->GetVariable (
VariablePpi,
EDKII_DEVICE_SECURITY_DATABASE,
&gEdkiiDeviceSignatureDatabaseGuid,
EFI_DEVICE_SECURITY_DATABASE,
&gEfiDeviceSignatureDatabaseGuid,
NULL,
&SignatureListSize,
SignatureList
Expand Down
2 changes: 1 addition & 1 deletion DeviceSecurityTestPkg/TestPei/SpdmStubPei/SpdmStubPei.inf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
SpdmTransportMctpLib

[Guids]
gEdkiiDeviceSignatureDatabaseGuid ## CONSUMES
gEfiDeviceSignatureDatabaseGuid ## CONSUMES
gEdkiiCertSpdmCertChainGuid ## CONSUMES

[Ppis]
Expand Down
4 changes: 2 additions & 2 deletions DeviceSecurityTestPkg/TestPei/TestSpdmPei/TestSpdmPei.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ TestSpdm (
SignatureList = AllocateZeroPool (SignatureListSize);
Status = VariablePpi->GetVariable (
VariablePpi,
EDKII_DEVICE_SECURITY_DATABASE,
&gEdkiiDeviceSignatureDatabaseGuid,
EFI_DEVICE_SECURITY_DATABASE,
&gEfiDeviceSignatureDatabaseGuid,
NULL,
&SignatureListSize,
SignatureList
Expand Down
2 changes: 1 addition & 1 deletion DeviceSecurityTestPkg/TestPei/TestSpdmPei/TestSpdmPei.inf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
DebugLib

[Guids]
gEdkiiDeviceSignatureDatabaseGuid ## CONSUMES
gEfiDeviceSignatureDatabaseGuid ## CONSUMES

[Ppis]
gSpdmPpiGuid ## CONSUME
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,8 @@ ExtendCertificate (
MeasureVariable (
PCR_INDEX_FOR_SIGNATURE_DB,
EV_EFI_SPDM_DEVICE_AUTHORITY,
EDKII_DEVICE_SECURITY_DATABASE,
&gEdkiiDeviceSignatureDatabaseGuid,
EFI_DEVICE_SECURITY_DATABASE,
&gEfiDeviceSignatureDatabaseGuid,
SignatureData,
SignatureDataSize
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ CreateSpdmDeviceContext (
RecordSpdmDeviceContextInList (SpdmDeviceContext);

Status = GetVariable2 (
EDKII_DEVICE_SECURITY_DATABASE,
&gEdkiiDeviceSignatureDatabaseGuid,
EFI_DEVICE_SECURITY_DATABASE,
&gEfiDeviceSignatureDatabaseGuid,
(VOID **)&SpdmDeviceContext->SignatureList,
&SpdmDeviceContext->SignatureListSize
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
SpdmCommonLib

[Guids]
gEdkiiDeviceSignatureDatabaseGuid ## CONSUMES
gEfiDeviceSignatureDatabaseGuid ## CONSUMES
gEfiCertX509Guid ## CONSUMES
gEfiDeviceSecuritySpdmUidGuid ## PRODUCES AND CONSUMES

Expand Down

0 comments on commit 87090d3

Please sign in to comment.