Skip to content

[release/8.0] RSA-384/SHA1 signature verification fails on Android - fix from #118366 not backported #134002

Closed

Description

@ViveliDuCh

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1597620
Build error leg or test failing: net8.0-android-Release-arm64-Mono_Release / System.Security.Cryptography.Rsa.Tests.SignVerify_*.VerifySignature_SHA1_384, PublicKeyTests.TestKey_RSA384_ValidatesSignature
Pull request: #133957 (release/8.0-staging -> release/8.0 merge)

Assert.True() Failure
Expected: True
Actual:   False
   at System.Security.Cryptography.Rsa.Tests.SignVerify.VerifySignature(Byte[] signature, Byte[] data, String hashAlgorithmName, RSAParameters rsaParameters) in /_/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/SignVerify.cs:line 1552

Console log: https://helixr1107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-release-80-staging-fd103e1897d64f92b0/System.Security.Cryptography.Tests/1/console.091581a7.log?helixlogtype=result

First reported here: #118366
Fixed on main by #118880 (backported to main via #118950), but that fix was never backported to release/8.0 — confirmed neither release/8.0 nor release/8.0-staging contains commit 1765399 or deae3d2. Requesting the fix be backported to release/8.0.

Error Message

{
  "ErrorMessage": "Assert.True() Failure\nExpected: True\nActual:   False",
  "ErrorPattern": "SignVerify_.*\\.VerifySignature_SHA1_384",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Note

This issue was filed with AI assistance (GitHub Copilot CLI).

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1597620
Error message validated: [SignVerify_.*\.VerifySignature_SHA1_384]
Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 9/15/2026 10:52:27 PM UTC

Report

Build Repository Test Pull Request
1648681 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate
1648254 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate
1646363 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate
1644849 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate
1643104 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate
1642846 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate #134908
1642677 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate #135438
1641533 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate
1641032 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.AppAndCertPoliciesChainTests.CertificatePolicyTest
1639770 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate
1639432 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate
1639011 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate
1637751 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate
1637437 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate #134819
1636373 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate
1634493 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate
1632972 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate
1631408 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate
1631022 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate
1630638 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate
1629206 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate
1627529 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate
1625894 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate
1625248 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution
1624492 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.CorruptPoliciesChainTests.CorruptMappingNoChecks
1624450 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate
1622443 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate
1622039 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate
1620717 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate
1620034 dotnet/runtime System.Security.Cryptography.Tests.HpkeKeyTests.GenerateKey_Roundtrip
1618934 dotnet/runtime System.Security.Cryptography.Tests.HpkeKeyTests.GenerateKey_Roundtrip
1619076 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate
1618254 dotnet/runtime System.Security.Cryptography.Tests.HpkeImplementationTests.Contexts_Export
1617850 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate #134549
1617342 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate
1616184 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509StoreTests.AddReadOnlyThrows #134859
1615702 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate
1615485 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.BuildChainForExpiredSelfSignedCertificate #134819
1615311 dotnet/runtime System.Security.Cryptography.Tests.MLDsaImplementationTests.GenerateSignExportPublicVerifyWithPublicOnly #134819
1614940 dotnet/runtime System.Security.Cryptography.Tests.HpkeImplementationTests.Contexts_Export
1614142 dotnet/runtime System.Security.Cryptography.Tests.HpkeKeyTests.ImportEncapsulationKey_KnownAnswerAndInputOwnership

Summary

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

Activity

  1. dotnet-policy-service commented on Sep 15, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to 'arch-android': @vitek-karas, @simonrozsival, @steveisok, @akoeplinger
    See info in area-owners.md if you want to be subscribed.

  2. dotnet-policy-service commented on Sep 15, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @bartonjs, @vcsjones, @dotnet/area-system-security
    See info in area-owners.md if you want to be subscribed.

  3. vcsjones commented on Sep 15, 2026

    @vcsjones
    Member

    I don't think the actual fix would meet the backport bar for release/8.0 at this point. We should just disable the test for the ~2 months left on the release 8.0 cycle.

  4. bartonjs commented on Sep 16, 2026

    @bartonjs
    Member

    agreed, let's disable the test for Android

  5. added
    disabled-testThe test is disabled in source code against the issue
    on Sep 16, 2026
  6. akoeplinger commented on Sep 23, 2026

    @akoeplinger
    Member

    tests were disabled

  7. vcsjones commented on Sep 23, 2026

    @vcsjones
    Member

    @akoeplinger they are only disabled in the -staging branches, which I don't think have flowed the release branches. Should we keep this open so the tests don't trip build analysis?

  8. akoeplinger commented on Sep 23, 2026

    @akoeplinger
    Member

    ah sorry yeah, I thought they already made it to release/8.0

  9. akoeplinger commented on Oct 27, 2026

    @akoeplinger
    Member

    Tests are now disabled in release/8.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions