File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/libraries/System.Security.Cryptography/tests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -370,7 +370,7 @@ public static void ExportPem_ExportEncryptedPkcs8PrivateKeyPem()
370
370
PbeParameters expectedPbeParameters = new PbeParameters (
371
371
PbeEncryptionAlgorithm . Aes256Cbc ,
372
372
HashAlgorithmName . SHA384 ,
373
- RandomNumberGenerator . GetInt32 ( 0 , 100_000 ) ) ;
373
+ RandomNumberGenerator . GetInt32 ( 1 , 100_000 ) ) ;
374
374
375
375
byte [ ] ExportEncryptedPkcs8PrivateKey ( ReadOnlySpan < char > password , PbeParameters pbeParameters )
376
376
{
@@ -407,7 +407,7 @@ public static void ExportPem_TryExportEncryptedPkcs8PrivateKeyPem()
407
407
PbeParameters expectedPbeParameters = new PbeParameters (
408
408
PbeEncryptionAlgorithm . Aes256Cbc ,
409
409
HashAlgorithmName . SHA384 ,
410
- RandomNumberGenerator . GetInt32 ( 0 , 100_000 ) ) ;
410
+ RandomNumberGenerator . GetInt32 ( 1 , 100_000 ) ) ;
411
411
412
412
bool TryExportEncryptedPkcs8PrivateKey (
413
413
ReadOnlySpan < char > password ,
You can’t perform that action at this time.
0 commit comments