## 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: https://github.com/dotnet/runtime/pull/91961 <!-- Error message template --> ## Error Message Fill the error message using [step by step known issues guidance](https://github.com/dotnet/arcade/blob/main/Documentation/Projects/Build%20Analysis/KnownIssues.md#how-to-fill-out-a-known-issue-error-section). <!-- Use ErrorMessage for String.Contains matches. Use ErrorPattern for regex matches (single line/no backtracking). Set BuildRetry to `true` to retry builds with this error. Set ExcludeConsoleLog to `true` to skip helix logs analysis. --> ```json { "ErrorMessage": "ASN1 corrupted data", "ErrorPattern": "", "BuildRetry": false, "ExcludeConsoleLog": false } ``` From [failure log](https://[helixre107v0xdcypoyl9e7f.blob.core.windows.net/dotnet-runtime-refs-pull-91961-merge-84ec5821ca75460390/System.Security.Cryptography.Cng.Tests/1/console.356ad893.log?helixlogtype=result](https://helixre107v0xdcypoyl9e7f.blob.core.windows.net/dotnet-runtime-refs-pull-91961-merge-84ec5821ca75460390/System.Security.Cryptography.Cng.Tests/1/console.356ad893.log?helixlogtype=result)): ``` 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 start --> ### Known issue validation **Build: :mag_right:** https://dev.azure.com/dnceng-public/public/_build/results?buildId=403942 **Error message validated:** `ASN1 corrupted data` **Result validation: :white_check_mark:** Known issue matched with the provided build. **Validation performed at:** 9/12/2023 11:23:57 PM UTC <!-- Known issue validation end --> <!--Known issue error report start --> ### Report #### Summary |24-Hour Hit Count|7-Day Hit Count|1-Month Count| |---|---|---| |0|0|0| <!--Known issue error report end -->
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:
Known issue validation
Build: 🔎https://dev.azure.com/dnceng-public/public/_build/results?buildId=403942
Error message validated:
ASN1 corrupted dataResult validation: ✅ Known issue matched with the provided build.
Validation performed at: 9/12/2023 11:23:57 PM UTC
Report
Summary