Skip to content

STATUS_UNSUCCESSFUL in RsaCryptRoundtrip_OaepSHA1 #29683

@danmoseley

Description

@danmoseley

Not actionable as is.
https://mc.dot.net/#/user/dotnet-bot/pr~2Fdotnet~2Fcorefx~2Frefs~2Fpull~2F37960~2Fmerge/test~2Ffunctional~2Fcli~2Finnerloop~2F/20190528.20/workItem/System.Security.Cryptography.Cng.Tests/analysis/xunit/System.Security.Cryptography.Rsa.Tests.EncryptDecrypt_Span~2FRsaCryptRoundtrip_OaepSHA1

Windows.10.Amd64.ClientRS4.ES.Open-x86-Release
Get Repro environment
Unhandled Exception of Type Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException
Message :
Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : Unknown error (0xc0000001)
Stack Trace :
   at System.Security.Cryptography.RSACng.TryEncryptOrDecrypt(SafeNCryptKeyHandle key, ReadOnlySpan`1 input, Span`1 output, AsymmetricPaddingMode paddingMode, Void* paddingInfo, Boolean encrypt, Int32& bytesWritten) in /_/src/Common/src/System/Security/Cryptography/RSACng.EncryptDecrypt.cs:line 266
   at System.Security.Cryptography.RSACng.TryEncryptOrDecrypt(ReadOnlySpan`1 data, Span`1 destination, RSAEncryptionPadding padding, Boolean encrypt, Int32& bytesWritten) in /_/src/Common/src/System/Security/Cryptography/RSACng.EncryptDecrypt.cs:line 205
   at System.Security.Cryptography.RSACng.TryDecrypt(ReadOnlySpan`1 data, Span`1 destination, RSAEncryptionPadding padding, Int32& bytesWritten) in /_/src/Common/src/System/Security/Cryptography/RSACng.EncryptDecrypt.cs:line 38
   at System.Security.Cryptography.Rsa.Tests.EncryptDecrypt_Span.<>c__DisplayClass1_0.<Decrypt>b__0(Byte[] dest) in /_/src/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/EncryptDecrypt.netcoreapp.cs:line 16
   at System.Security.Cryptography.Rsa.Tests.EncryptDecrypt_Span.TryWithOutputArray(Func`2 func) in /_/src/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/EncryptDecrypt.netcoreapp.cs:line 23
   at System.Security.Cryptography.Rsa.Tests.EncryptDecrypt_Span.Decrypt(RSA rsa, Byte[] data, RSAEncryptionPadding padding) in /_/src/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/EncryptDecrypt.netcoreapp.cs:line 16
   at System.Security.Cryptography.Rsa.Tests.EncryptDecrypt.RsaCryptRoundtrip(RSAEncryptionPadding paddingMode, Boolean expectSuccess) in /_/src/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/EncryptDecrypt.cs:line 315
   at System.Security.Cryptography.Rsa.Tests.EncryptDecrypt.RsaCryptRoundtrip_OaepSHA1() in /_/src/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/EncryptDecrypt.cs:line 285

UPD by @CarnaViire: I went ahead and added Build Information below, from the last occurrence on my PR -- in hopes that known-issues infra would be able to validate and attach the failures not attached yet.

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=565017&view=results
Build error leg or test failing: System.Security.Cryptography.Rsa.Tests.EncryptDecrypt_Span.RsaCryptRoundtrip_OaepSHA512
Pull request:

Error Message

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

{
  "ErrorMessage": "CryptographicException : Unknown error (0x",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Report

Build Definition Test Pull Request
1167220 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_Span.ExpectedSignature_SHA1_384 #120443
1167146 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_TrySpan.ExpectedSignature_SHA1_384 #120443
1166894 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_TrySpan.ExpectedSignature_SHA1_384 #120453
1164378 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_Span.ExpectedSignature_SHA1_384 #120350
1164997 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_AllocatingSpan.ExpectedSignature_SHA1_384 #120369
1165895 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_Array.ExpectedSignature_SHA1_384 #120415
1165813 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_Array.ExpectedSignature_SHA1_384 #120409
1165803 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_TrySpan.ExpectedSignature_SHA1_384 #120408
2808344 dotnet-runtime System.Security.Cryptography.Rsa.Tests.SignVerify_Span.ExpectedSignature_SHA1_384 #54001
1165680 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_AllocatingSpan.ExpectedSignature_SHA1_384 #120402
1165389 dotnet/runtime System.Security.Cryptography.Rsa.Tests.RSAKeyFileTests.ReadPbes1Rc2EncryptedRsa384 #120396
1164957 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_AllocatingSpan.ExpectedSignature_SHA1_384 #115502
1165246 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_Array.ExpectedSignature_SHA1_384 #120387
1165238 dotnet/runtime System.Security.Cryptography.Rsa.Tests.RSAKeyFileTests.ReadPbes1Rc2EncryptedRsa384
1165241 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_Array.ExpectedSignature_SHA1_384
1165062 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_Array.ExpectedSignature_SHA1_384 #120372
1165169 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_AllocatingSpan.ExpectedSignature_SHA1_384
1164978 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_Span.ExpectedSignature_SHA1_384
1165076 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_Array.ExpectedSignature_SHA1_384 #120374
1165093 dotnet/runtime System.Security.Cryptography.Rsa.Tests.RSAKeyFileTests.ReadPbes1Rc2EncryptedRsa384 #120376
1165079 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_TrySpan.ExpectedSignature_SHA1_384 #120374
1165042 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_Span.ExpectedSignature_SHA1_384
1162813 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_Span.ExpectedSignature_SHA1_384 #120126
1165039 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_AllocatingSpan.ExpectedSignature_SHA1_384
1165026 dotnet/runtime System.Security.Cryptography.Rsa.Tests.RSAKeyFileTests.ReadPbes1Rc2EncryptedRsa384 #120370
1164973 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_Span.ExpectedSignature_SHA1_384
1164989 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_Span.ExpectedSignature_SHA1_384 #120314
1164982 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_Array.ExpectedSignature_SHA1_384 #120336
1163909 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_Array.ExpectedSignature_SHA1_384 #120331
1164976 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_AllocatingSpan.ExpectedSignature_SHA1_384
1164938 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_TrySpan.ExpectedSignature_SHA1_384 #120342
1164543 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_Array.ExpectedSignature_SHA1_384 #119492
1164902 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_Span.ExpectedSignature_SHA1_384 #119584
1164898 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_Array.ExpectedSignature_SHA1_384 #120364
1164856 dotnet/runtime System.Security.Cryptography.Rsa.Tests.RSAKeyFileTests.ReadPbes1Rc2EncryptedRsa384 #120363
1164837 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_AllocatingSpan.ExpectedSignature_SHA1_384 #120361
1164826 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_AllocatingSpan.ExpectedSignature_SHA1_384 #120096
1164813 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_AllocatingSpan.ExpectedSignature_SHA1_384 #120336
1164795 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_Span.ExpectedSignature_SHA1_384 #120330
1164733 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_AllocatingSpan.ExpectedSignature_SHA1_384 #120298
1164607 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_Span.ExpectedSignature_SHA1_384
1164630 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_Span.ExpectedSignature_SHA1_384 #120357
1164609 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_Span.ExpectedSignature_SHA1_384
1164591 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_AllocatingSpan.ExpectedSignature_SHA1_384 #120336
1164566 dotnet/runtime System.Security.Cryptography.Rsa.Tests.RSAKeyFileTests.ReadPbes1Rc2EncryptedRsa384
1164547 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_TrySpan.ExpectedSignature_SHA1_384 #120326
1164376 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_TrySpan.ExpectedSignature_SHA1_384 #120349
1164392 dotnet/runtime System.Security.Cryptography.Rsa.Tests.RSAKeyFileTests.ReadPbes1Rc2EncryptedRsa384 #120351
1164315 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_AllocatingSpan.ExpectedSignature_SHA1_384 #117405
1164373 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_Span.ExpectedSignature_SHA1_384 #120348
1164322 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_Array.ExpectedSignature_SHA1_384 #120345
1164273 dotnet/runtime System.Security.Cryptography.Rsa.Tests.RSAKeyFileTests.ReadPbes1Rc2EncryptedRsa384 #120342
1164125 dotnet/runtime System.Security.Cryptography.Rsa.Tests.RSAKeyFileTests.ReadPbes1Rc2EncryptedRsa384
1164206 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_AllocatingSpan.ExpectedSignature_SHA1_384 #120336
1164127 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_AllocatingSpan.ExpectedSignature_SHA1_384
1164073 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_Array.ExpectedSignature_SHA1_384
1163984 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_Span.ExpectedSignature_SHA1_384 #120330
1164050 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_TrySpan.ExpectedSignature_SHA1_384 #120314
1163988 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_AllocatingSpan.ExpectedSignature_SHA1_384 #120144
1163947 dotnet/runtime System.Security.Cryptography.Rsa.Tests.SignVerify_AllocatingSpan.ExpectedSignature_SHA1_384 #120298
1163913 dotnet/runtime System.Security.Cryptography.Rsa.Tests.RSAKeyFileTests.ReadPbes1Rc2EncryptedRsa384 #119803
1156826 dotnet/runtime System.Security.Cryptography.Rsa.Tests.EncryptDecrypt_TrySpan.NonPowerOfTwoKeySizeOaepRoundtrip #106880

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
5 61 62

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=565017
Error message validated: [CryptographicException : Unknown error (0x]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 2/19/2024 11:07:21 AM UTC

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build ErrorUse this to report build issues in the .NET Helix tabarea-System.Securitytracking-external-issueThe issue is caused by external problem (e.g. OS) - nothing we can do to fix it directly

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions