Skip to content

Commit

Permalink
SecurityPkg: Fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Wenxing Hou <[email protected]>
  • Loading branch information
Wenxing-hou authored and jyao1 committed Jan 30, 2024
1 parent 65d47cc commit e729ff8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ CreateSpdmDriverContext (
Data16 = SPDM_ALGORITHMS_DHE_NAMED_GROUP_SECP_256_R1 |
SPDM_ALGORITHMS_DHE_NAMED_GROUP_SECP_384_R1 |
SPDM_ALGORITHMS_DHE_NAMED_GROUP_SECP_521_R1;
SpdmSetData (SpdmContext, SpdmDataDHENamedGroup, &Parameter, &Data16, sizeof (Data16));
SpdmSetData (SpdmContext, SpdmDataDHENameGroup, &Parameter, &Data16, sizeof (Data16));
Data16 = SPDM_ALGORITHMS_AEAD_CIPHER_SUITE_AES_128_GCM |
SPDM_ALGORITHMS_AEAD_CIPHER_SUITE_AES_256_GCM |
SPDM_ALGORITHMS_AEAD_CIPHER_SUITE_CHACHA20_POLY1305;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ CreateSpdmDriverContext (
Data32 = SPDM_ALGORITHMS_BASE_HASH_ALGO_TPM_ALG_SHA_256;
SpdmSetData (SpdmContext, SpdmDataBaseHashAlgo, &Parameter, &Data32, sizeof(Data32));
Data16 = SPDM_ALGORITHMS_DHE_NAMED_GROUP_FFDHE_2048;
SpdmSetData (SpdmContext, SpdmDataDHENamedGroup, &Parameter, &Data16, sizeof(Data16));
SpdmSetData (SpdmContext, SpdmDataDHENameGroup, &Parameter, &Data16, sizeof(Data16));
Data16 = SPDM_ALGORITHMS_KEY_SCHEDULE_HMAC_HASH;
SpdmSetData (SpdmContext, SpdmDataAEADCipherSuite, &Parameter, &Data16, sizeof(Data16));
Data16 = SPDM_ALGORITHMS_KEY_SCHEDULE_HMAC_HASH;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,7 @@ MainEntryPoint (
} else {
Data16 = SPDM_ALGORITHMS_DHE_NAMED_GROUP_SECP_384_R1;
}
SpdmSetData (SpdmContext, SpdmDataDHENamedGroup, &Parameter, &Data16, sizeof (Data16));
SpdmSetData (SpdmContext, SpdmDataDHENameGroup, &Parameter, &Data16, sizeof (Data16));
if (TestConfig == TEST_CONFIG_SECP_256_R1_AES_256_GCM) {
Data16 = SPDM_ALGORITHMS_AEAD_CIPHER_SUITE_AES_256_GCM;
} else if (TestConfig == TEST_CONFIG_SECP_521_R1_CHACHA20_POLY1305) {
Expand Down
2 changes: 1 addition & 1 deletion DeviceSecurityTestPkg/Test/SpdmStub/SpdmStub.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ MainEntryPoint (
Data16 = SPDM_ALGORITHMS_DHE_NAMED_GROUP_SECP_384_R1;
}

SpdmSetData (SpdmContext, SpdmDataDHENamedGroup, &Parameter, &Data16, sizeof (Data16));
SpdmSetData (SpdmContext, SpdmDataDHENameGroup, &Parameter, &Data16, sizeof (Data16));
if (TestConfig == TEST_CONFIG_SECP_256_R1_AES_256_GCM) {
Data16 = SPDM_ALGORITHMS_AEAD_CIPHER_SUITE_AES_256_GCM;
} else if (TestConfig == TEST_CONFIG_SECP_521_R1_CHACHA20_POLY1305) {
Expand Down
2 changes: 1 addition & 1 deletion DeviceSecurityTestPkg/TestPei/SpdmStubPei/SpdmStubPei.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ MainEntryPoint (
Data32 = SPDM_ALGORITHMS_BASE_HASH_ALGO_TPM_ALG_SHA_256;
SpdmSetData (SpdmContext, SpdmDataBaseHashAlgo, &Parameter, &Data32, sizeof(Data32));
Data16 = SPDM_ALGORITHMS_DHE_NAMED_GROUP_FFDHE_2048;
SpdmSetData (SpdmContext, SpdmDataDHENamedGroup, &Parameter, &Data16, sizeof(Data16));
SpdmSetData (SpdmContext, SpdmDataDHENameGroup, &Parameter, &Data16, sizeof(Data16));
Data16 = SPDM_ALGORITHMS_KEY_SCHEDULE_HMAC_HASH;
SpdmSetData (SpdmContext, SpdmDataAEADCipherSuite, &Parameter, &Data16, sizeof(Data16));
Data16 = SPDM_ALGORITHMS_KEY_SCHEDULE_HMAC_HASH;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ typedef enum {
SpdmDataMeasurementHashAlgo,
SpdmDataBaseAsymAlgo,
SpdmDataBaseHashAlgo,
SpdmDataDHENamedGroup,
SpdmDataDHENameGroup,
SpdmDataAEADCipherSuite,
SpdmDataReqBaseAsymAlg,
SpdmDataKeySchedule,
Expand Down

0 comments on commit e729ff8

Please sign in to comment.