dotnet / dotnet/runtime

Test failure: System.Security.Cryptography.Cose.Tests.CoseMultiSignMessageTests_Sign.SignVerify

Open
#127,441 3 comments 0 reactions 0 assignees View on GitHub
area-System.Security blocking-clean-ci-optional
Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

**Failed in:** [runtime-coreclr crossgen2 20260425.1](https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1396916)

**Failed tests:**
```
net11.0-osx-Release-x64-TestReadyToRun_Release-OSX.15.Amd64.Open
- System.Security.Cryptography.Cose.Tests.CoseMultiSignMessageTests_Sign.SignVerify

```

**Error message:**
```
Interop+AppleCrypto+AppleCFErrorCryptographicException : The operation couldn’t be completed. (OSStatus error -50 - Unsupported key type: 42 (converted value: 42)
```

**Stack trace:**
```
at Interop.AppleCrypto.CreateDataKey(ReadOnlySpan`1 keyData, PAL_KeyAlgorithm keyAlgorithm, Boolean isPublic)
at System.Security.Cryptography.RSAImplementation.RSAAppleCrypto.ImportKey(RSAParameters parameters)
at System.Security.Cryptography.RSAImplementation.RSAAppleCrypto.ImportParameters(RSAParameters parameters)
at System.Security.Cryptography.RSA.Create(RSAParameters parameters)
at System.Security.Cryptography.Cose.Tests.TestKeyRing.CreateRSA(Boolean includePrivateKey) in /_/src/libraries/System.Security.Cryptography.Cose/tests/TestKeyRing.cs:line 93
at System.Security.Cryptography.Cose.Tests.TestKeyRing.get_RSAKey() in /_/src/libraries/System.Security.Cryptography.Cose/tests/TestKeyRing.cs:line 32
at System.Security.Cryptography.Cose.Tests.CoseTestHelpers.GetKeyHashPaddingTriplet[T](CoseAlgorithm algorithm, Boolean useNonPrivateKey) in /_/src/libraries/System.Security.Cryptography.Cose/tests/CoseTestHelpers.cs:line 522
at System.Security.Cryptography.Cose.Tests.CoseMessageTests_Sign`1.GetKeyHashAlgorithmPaddingQuadruplet(Boolean useNonPrivateKey)+MoveNext() in /_/src/libraries/System.Security.Cryptography.Cose/tests/CoseMessageTests.Sign.cs:line 40
at System.Security.Cryptography.Cose.Tests.CoseMessageTests_Sign`1.SignVerify() in /_/src/libraries/System.Security.Cryptography.Cose/tests/CoseMessageTests.Sign.cs:line 99
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.