Skip to content

Commit 9703a4c

Browse files
authored
Fixes build to use new method name. (#116591)
1 parent 2fb0bc0 commit 9703a4c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/libraries/Common/src/System/Security/Cryptography/MLDsaImplementation.Windows.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ private void ExportKey(string keyBlobType, int expectedKeySize, Span<byte> desti
179179
out ReadOnlySpan<char> parameterSet,
180180
out string blobType);
181181

182-
string expectedParameterSet = PqcBlobHelpers.GetParameterSet(Algorithm);
182+
string expectedParameterSet = PqcBlobHelpers.GetMLDsaParameterSet(Algorithm);
183183

184184
if (blobType != keyBlobType ||
185185
keyBytes.Length != expectedKeySize ||

src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/MLDsa/MLDsaTestHelpers.Cng.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ internal static partial class MLDsaTestHelpers
88
internal static MLDsaCng ImportPublicKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source)
99
{
1010
CngKey key = PqcBlobHelpers.EncodeMLDsaBlob(
11-
PqcBlobHelpers.GetParameterSet(algorithm),
11+
PqcBlobHelpers.GetMLDsaParameterSet(algorithm),
1212
source,
1313
Interop.BCrypt.KeyBlobType.BCRYPT_PQDSA_PUBLIC_BLOB,
1414
blob => CngKey.Import(blob.ToArray(), CngKeyBlobFormat.PQDsaPublicBlob));
@@ -31,7 +31,7 @@ internal static MLDsaCng GenerateKey(MLDsaAlgorithm algorithm, CngExportPolicies
3131
internal static MLDsaCng ImportPrivateSeed(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source, CngExportPolicies exportPolicies)
3232
{
3333
CngKey key = PqcBlobHelpers.EncodeMLDsaBlob(
34-
PqcBlobHelpers.GetParameterSet(algorithm),
34+
PqcBlobHelpers.GetMLDsaParameterSet(algorithm),
3535
source,
3636
Interop.BCrypt.KeyBlobType.BCRYPT_PQDSA_PRIVATE_SEED_BLOB,
3737
blob =>
@@ -55,7 +55,7 @@ internal static MLDsaCng ImportPrivateSeed(MLDsaAlgorithm algorithm, ReadOnlySpa
5555
internal static MLDsaCng ImportSecretKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source, CngExportPolicies exportPolicies)
5656
{
5757
CngKey key = PqcBlobHelpers.EncodeMLDsaBlob(
58-
PqcBlobHelpers.GetParameterSet(algorithm),
58+
PqcBlobHelpers.GetMLDsaParameterSet(algorithm),
5959
source,
6060
Interop.BCrypt.KeyBlobType.BCRYPT_PQDSA_PRIVATE_BLOB,
6161
blob =>

src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/MLDsaCng.Windows.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ private void ExportKey(
308308
{
309309
ReadOnlySpan<byte> keyBytes = PqcBlobHelpers.DecodeMLDsaBlob(blob, out ReadOnlySpan<char> parameterSet, out string blobType);
310310

311-
string expectedParameterSet = PqcBlobHelpers.GetParameterSet(Algorithm);
311+
string expectedParameterSet = PqcBlobHelpers.GetMLDsaParameterSet(Algorithm);
312312

313313
if (blobType != blobFormat.Format ||
314314
keyBytes.Length != expectedKeySize ||

src/libraries/System.Security.Cryptography/tests/MLDsaCngTests.Windows.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public void ImportPrivateSeed_NoExportFlag(MLDsaKeyInfo info)
8686
public void ImportPrivateSeed_Persisted()
8787
{
8888
CngKey key = PqcBlobHelpers.EncodeMLDsaBlob(
89-
PqcBlobHelpers.GetParameterSet(MLDsaAlgorithm.MLDsa44),
89+
PqcBlobHelpers.GetMLDsaParameterSet(MLDsaAlgorithm.MLDsa44),
9090
MLDsaTestsData.IetfMLDsa44.PrivateSeed,
9191
Interop.BCrypt.KeyBlobType.BCRYPT_PQDSA_PRIVATE_SEED_BLOB,
9292
blob =>
@@ -135,7 +135,7 @@ public void ImportPrivateSeed_Persisted()
135135
public void ImportSecretKey_Persisted()
136136
{
137137
CngKey key = PqcBlobHelpers.EncodeMLDsaBlob(
138-
PqcBlobHelpers.GetParameterSet(MLDsaAlgorithm.MLDsa44),
138+
PqcBlobHelpers.GetMLDsaParameterSet(MLDsaAlgorithm.MLDsa44),
139139
MLDsaTestsData.IetfMLDsa44.SecretKey,
140140
Interop.BCrypt.KeyBlobType.BCRYPT_PQDSA_PRIVATE_BLOB,
141141
blob =>

0 commit comments

Comments
 (0)