Skip to content

System.Security.Cryptography.Cng.Tests.ECDsaCngPkcs8Tests.NoPlaintextExportAllowsEncryptedPkcs8 fails on Windows.Nano.1809.Amd64.Open #91971

@buyaa-n

Description

@buyaa-n

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=403942
Build error leg or test failing: System.Security.Cryptography.Cng.Tests.ECDsaCngPkcs8Tests.NoPlaintextExportAllowsEncryptedPkcs8
Pull request: #91961

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "ASN1 corrupted data",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

From failure log:

    System.Security.Cryptography.Cng.Tests.ECDsaCngPkcs8Tests.NoPlaintextExportAllowsEncryptedPkcs8(algorithm: TripleDes3KeyPkcs12) [FAIL]
      System.Security.Cryptography.CryptographicException : ASN1 corrupted data.
      Stack Trace:
        /_/src/libraries/Common/src/System/Security/Cryptography/EccKeyFormatHelper.cs(149,0): at System.Security.Cryptography.EccKeyFormatHelper.FromECPrivateKey(ECPrivateKey key, AlgorithmIdentifierAsn& algId, ECParameters& ret)
        /_/src/libraries/Common/src/System/Security/Cryptography/CngPkcs8.cs(407,0): at System.Security.Cryptography.CngPkcs8.RewritePkcs8ECPrivateKeyWithZeroPublicKey(ReadOnlySpan`1 source)
        /_/src/libraries/Common/src/System/Security/Cryptography/CngPkcs8.cs(257,0): at System.Security.Cryptography.CngPkcs8.ImportEncryptedPkcs8PrivateKey(ReadOnlySpan`1 password, ReadOnlySpan`1 source, Int32& bytesRead)
        /_/src/libraries/Common/src/System/Security/Cryptography/ECDsaCng.ImportExport.cs(158,0): at System.Security.Cryptography.ECDsaCng.ImportEncryptedPkcs8PrivateKey(ReadOnlySpan`1 password, ReadOnlySpan`1 source, Int32& bytesRead)
        /_/src/libraries/System.Security.Cryptography.Cng/tests/CngPkcs8Tests.cs(66,0): at System.Security.Cryptography.Cng.Tests.CngPkcs8Tests`1.NoPlaintextExportAllowsEncryptedPkcs8(PbeEncryptionAlgorithm algorithm)
           at InvokeStub_CngPkcs8Tests`1.NoPlaintextExportAllowsEncryptedPkcs8(Object, Span`1)
           at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=403942
Error message validated: ASN1 corrupted data
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 9/12/2023 11:23:57 PM UTC

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

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'needs-further-triageIssue has been initially triaged, but needs deeper consideration or reconsideration

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions