diff options
author | Kevin Jones <kevin@vcsjones.com> | 2022-09-08 16:27:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-08 16:27:44 +0300 |
commit | b83539cbf22d4197f4b0004101b42abcad56316c (patch) | |
tree | f4602de766e67b170a0e8fc349ba16a900683d88 | |
parent | 69ddb97e9b3279bcf68bcd1963411075eba64540 (diff) |
Fix tests to use valid PBE iterations (#75240)
-rw-r--r-- | src/libraries/System.Security.Cryptography/tests/AsymmetricAlgorithmTests.cs | 4 |
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, |