Skip to content

ExportPem_ExportEncryptedPkcs8PrivateKeyPem fails with 0 iteration count  #75234

@hoyosjs

Description

@hoyosjs

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=6200
Build error leg or test failing: System.Security.Cryptography.Tests.AsymmetricAlgorithmTests.ExportPem_ExportEncryptedPkcs8PrivateKeyPem
Pull request: #75011

From the test:

    System.Security.Cryptography.Tests.AsymmetricAlgorithmTests.ExportPem_ExportEncryptedPkcs8PrivateKeyPem [FAIL]
      System.ArgumentOutOfRangeException : Positive number required. (Parameter 'iterationCount')
      Actual value was 0.
      Stack Trace:
        /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/PbeParameters.cs(19,0): at System.Security.Cryptography.PbeParameters..ctor(PbeEncryptionAlgorithm encryptionAlgorithm, HashAlgorithmName hashAlgorithm, Int32 iterationCount)
        /_/src/libraries/System.Security.Cryptography/tests/AsymmetricAlgorithmTests.cs(370,0): at System.Security.Cryptography.Tests.AsymmetricAlgorithmTests.ExportPem_ExportEncryptedPkcs8PrivateKeyPem()
           at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
        /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodInvoker.cs(69,0): at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

Error Message

{
  "ErrorMessage": "Positive number required. (Parameter 'iterationCount')",
  "BuildRetry": false
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build ErrorUse this to report build issues in the .NET Helix tabarea-System.Securityblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions