Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Jones <kevin@vcsjones.com>2022-09-08 16:27:44 +0300
committerGitHub <noreply@github.com>2022-09-08 16:27:44 +0300
commitb83539cbf22d4197f4b0004101b42abcad56316c (patch)
treef4602de766e67b170a0e8fc349ba16a900683d88
parent69ddb97e9b3279bcf68bcd1963411075eba64540 (diff)
Fix tests to use valid PBE iterations (#75240)
-rw-r--r--src/libraries/System.Security.Cryptography/tests/AsymmetricAlgorithmTests.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libraries/System.Security.Cryptography/tests/AsymmetricAlgorithmTests.cs b/src/libraries/System.Security.Cryptography/tests/AsymmetricAlgorithmTests.cs
index ca40479e6c2..0a0011d1646 100644
--- a/src/libraries/System.Security.Cryptography/tests/AsymmetricAlgorithmTests.cs
+++ b/src/libraries/System.Security.Cryptography/tests/AsymmetricAlgorithmTests.cs
@@ -370,7 +370,7 @@ namespace System.Security.Cryptography.Tests
PbeParameters expectedPbeParameters = new PbeParameters(
PbeEncryptionAlgorithm.Aes256Cbc,
HashAlgorithmName.SHA384,
- RandomNumberGenerator.GetInt32(0, 100_000));
+ RandomNumberGenerator.GetInt32(1, 100_000));
byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters)
{
@@ -407,7 +407,7 @@ namespace System.Security.Cryptography.Tests
PbeParameters expectedPbeParameters = new PbeParameters(
PbeEncryptionAlgorithm.Aes256Cbc,
HashAlgorithmName.SHA384,
- RandomNumberGenerator.GetInt32(0, 100_000));
+ RandomNumberGenerator.GetInt32(1, 100_000));
bool TryExportEncryptedPkcs8PrivateKey(
ReadOnlySpan<char> password,