Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several System.Security.Cryptography.Pkcs tests fail with Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException #31281

Closed
ahsonkhan opened this issue Oct 24, 2019 · 3 comments
Labels
area-System.Security tracking-external-issue The issue is caused by external problem (e.g. OS) - nothing we can do to fix it directly
Milestone

Comments

@ahsonkhan
Copy link
Member

ahsonkhan commented Oct 24, 2019

From dotnet/corefx#41754

Failing on netcoreapp-Windows_NT-Release-x86-Windows.81.Amd64.Open with Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : An internal consistency check failed.

For example:

Error message
Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : An internal consistency check failed.

Stack trace
   at System.Security.Cryptography.Pkcs.EnvelopedCms.Decrypt(RecipientInfo recipientInfo, AsymmetricAlgorithm privateKey) in /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/EnvelopedCms.cs:line 208
   at System.Security.Cryptography.Pkcs.EnvelopedCmsTests.Tests.DecryptTests.VerifySimpleDecrypt(Byte[] encodedMessage, CertLoader certLoader, ContentInfo expectedContent) in /_/src/System.Security.Cryptography.Pkcs/tests/EnvelopedCms/DecryptTests.cs:line 845
   at System.Security.Cryptography.Pkcs.EnvelopedCmsTests.Tests.DecryptTests.TestSimpleDecrypt_RoundTrip(CertLoader certLoader, ContentInfo contentInfo, String algorithmOidValue, SubjectIdentifierType type, ContentInfo expectedContentInfo) in /_/src/System.Security.Cryptography.Pkcs/tests/EnvelopedCms/DecryptTests.cs:line 826
   at System.Security.Cryptography.Pkcs.EnvelopedCmsTests.Tests.DecryptTests.DecryptEnvelopedDataWithNonPkcs7Oid() in /_/src/System.Security.Cryptography.Pkcs/tests/EnvelopedCms/DecryptTests.cs:line 777

https://dev.azure.com/dnceng/public/_build/results?buildId=398302&view=ms.vss-test-web.build-test-results-tab&runId=12432040&resultId=161534&paneView=debug

https://helix.dot.net/api/2019-06-17/jobs/667c26e2-0953-4fe8-bf70-194af19c3683/workitems/System.Security.Cryptography.Pkcs.Tests/console

  Starting:    System.Security.Cryptography.Pkcs.Tests (parallel test collections = on, max threads = 2)
    System.Security.Cryptography.Pkcs.EnvelopedCmsTests.Tests.KeyAgreeRecipientInfoTests.TestKeyAgreement_PlatformNotSupported [SKIP]
      Condition(s) not met: "DoesNotSupportDiffieHellman"
    System.Security.Cryptography.Pkcs.Tests.Pkcs8PrivateKeyInfoTests.ReencryptAndImport [FAIL]
      Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : An internal consistency check failed.
      Stack Trace:
        /_/src/Common/src/System/Security/Cryptography/RSACng.EncryptDecrypt.cs(261,0): at System.Security.Cryptography.RSAImplementation.RSACng.EncryptOrDecrypt(SafeNCryptKeyHandle key, ReadOnlySpan`1 input, AsymmetricPaddingMode paddingMode, Void* paddingInfo, Boolean encrypt)
        /_/src/Common/src/System/Security/Cryptography/RSACng.EncryptDecrypt.cs(119,0): at System.Security.Cryptography.RSAImplementation.RSACng.EncryptOrDecrypt(Byte[] data, RSAEncryptionPadding padding, Boolean encrypt)
        /_/src/Common/src/System/Security/Cryptography/RSACng.EncryptDecrypt.cs(30,0): at System.Security.Cryptography.RSAImplementation.RSACng.Decrypt(Byte[] data, RSAEncryptionPadding padding)
        /_/src/System.Security.Cryptography.Pkcs/tests/Pkcs8PrivateKeyInfoTests.cs(310,0): at System.Security.Cryptography.Pkcs.Tests.Pkcs8PrivateKeyInfoTests.ReencryptAndImport()
    System.Security.Cryptography.Pkcs.EnvelopedCmsTests.Tests.KeyTransRecipientInfoRsaOaepCertTests.TestKeyTransEncryptKey_RsaOaepCertificate_NoPlatformSupport_Throws [SKIP]
      Condition(s) not met: "DoesNotSupportRsaOaepCerts"
    System.Security.Cryptography.Pkcs.Tests.SignedCmsTests.SignCmsUsingDSACertWithNotMatchingKeyThrows [FAIL]
      Assert.Throws() Failure
      Expected: typeof(System.Security.Cryptography.CryptographicException)
      Actual:   typeof(Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException): An internal consistency check failed.
      ---- Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : An internal consistency check failed.
      Stack Trace:
        /_/src/System.Security.Cryptography.Algorithms/src/System/Security/Cryptography/CngKeyLite.cs(409,0): at System.Security.Cryptography.CngKeyLite.GenerateNewExportableKey(String algorithm, Int32 keySize)
        /_/src/System.Security.Cryptography.Algorithms/src/System/Security/Cryptography/DSACng.cs(49,0): at System.Security.Cryptography.DSAImplementation.DSACng.GetDuplicatedKeyHandle()
        /_/src/Common/src/System/Security/Cryptography/DSACng.SignVerify.cs(118,0): at System.Security.Cryptography.DSAImplementation.DSACng.ComputeQLength()
        /_/src/Common/src/System/Security/Cryptography/DSACng.SignVerify.cs(96,0): at System.Security.Cryptography.DSAImplementation.DSACng.AdjustHashSizeIfNecessary(ReadOnlySpan`1 hash, Span`1 stackBuf)
        /_/src/Common/src/System/Security/Cryptography/DSACng.SignVerify.cs(47,0): at System.Security.Cryptography.DSAImplementation.DSACng.TryCreateSignature(ReadOnlySpan`1 hash, Span`1 destination, Int32& bytesWritten)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSignature.DSA.cs(143,0): at System.Security.Cryptography.Pkcs.CmsSignature.DSACmsSignature.Sign(ReadOnlySpan`1 dataHash, HashAlgorithmName hashAlgorithmName, X509Certificate2 certificate, AsymmetricAlgorithm key, Boolean silent, Oid& signatureAlgorithm, Byte[]& signatureValue)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSignature.cs(95,0): at System.Security.Cryptography.Pkcs.CmsSignature.Sign(ReadOnlySpan`1 dataHash, HashAlgorithmName hashAlgorithmName, X509Certificate2 certificate, AsymmetricAlgorithm key, Boolean silent, Oid& oid, ReadOnlyMemory`1& signatureValue)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSigner.cs(233,0): at System.Security.Cryptography.Pkcs.CmsSigner.Sign(ReadOnlyMemory`1 data, String contentTypeOid, Boolean silent, X509Certificate2Collection& chainCerts)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/SignedCms.cs(323,0): at System.Security.Cryptography.Pkcs.SignedCms.ComputeSignature(CmsSigner signer, Boolean silent)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/SignedCms.cs(274,0): at System.Security.Cryptography.Pkcs.SignedCms.ComputeSignature(CmsSigner signer)
        /_/src/System.Security.Cryptography.Pkcs/tests/SignedCms/SignedCmsTests.netcoreapp.cs(220,0): at System.Security.Cryptography.Pkcs.Tests.SignedCmsTests.<>c__DisplayClass77_0.<SignCmsUsingDSACertWithNotMatchingKeyThrows>b__0()
        ----- Inner Stack Trace -----
        /_/src/System.Security.Cryptography.Algorithms/src/System/Security/Cryptography/CngKeyLite.cs(409,0): at System.Security.Cryptography.CngKeyLite.GenerateNewExportableKey(String algorithm, Int32 keySize)
        /_/src/System.Security.Cryptography.Algorithms/src/System/Security/Cryptography/DSACng.cs(49,0): at System.Security.Cryptography.DSAImplementation.DSACng.GetDuplicatedKeyHandle()
        /_/src/Common/src/System/Security/Cryptography/DSACng.SignVerify.cs(118,0): at System.Security.Cryptography.DSAImplementation.DSACng.ComputeQLength()
        /_/src/Common/src/System/Security/Cryptography/DSACng.SignVerify.cs(96,0): at System.Security.Cryptography.DSAImplementation.DSACng.AdjustHashSizeIfNecessary(ReadOnlySpan`1 hash, Span`1 stackBuf)
        /_/src/Common/src/System/Security/Cryptography/DSACng.SignVerify.cs(47,0): at System.Security.Cryptography.DSAImplementation.DSACng.TryCreateSignature(ReadOnlySpan`1 hash, Span`1 destination, Int32& bytesWritten)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSignature.DSA.cs(143,0): at System.Security.Cryptography.Pkcs.CmsSignature.DSACmsSignature.Sign(ReadOnlySpan`1 dataHash, HashAlgorithmName hashAlgorithmName, X509Certificate2 certificate, AsymmetricAlgorithm key, Boolean silent, Oid& signatureAlgorithm, Byte[]& signatureValue)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSignature.cs(95,0): at System.Security.Cryptography.Pkcs.CmsSignature.Sign(ReadOnlySpan`1 dataHash, HashAlgorithmName hashAlgorithmName, X509Certificate2 certificate, AsymmetricAlgorithm key, Boolean silent, Oid& oid, ReadOnlyMemory`1& signatureValue)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSigner.cs(233,0): at System.Security.Cryptography.Pkcs.CmsSigner.Sign(ReadOnlyMemory`1 data, String contentTypeOid, Boolean silent, X509Certificate2Collection& chainCerts)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/SignedCms.cs(323,0): at System.Security.Cryptography.Pkcs.SignedCms.ComputeSignature(CmsSigner signer, Boolean silent)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/SignedCms.cs(274,0): at System.Security.Cryptography.Pkcs.SignedCms.ComputeSignature(CmsSigner signer)
        /_/src/System.Security.Cryptography.Pkcs/tests/SignedCms/SignedCmsTests.netcoreapp.cs(220,0): at System.Security.Cryptography.Pkcs.Tests.SignedCmsTests.<>c__DisplayClass77_0.<SignCmsUsingDSACertWithNotMatchingKeyThrows>b__0()
    System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.NoTsaEku(includeOption: None) [FAIL]
      Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : An internal consistency check failed.
      Stack Trace:
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(204,0): at Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(Byte[] rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(88,0): at Internal.Cryptography.Pal.CertificatePal.FromBlobOrFile(Byte[] rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(21,0): at Internal.Cryptography.Pal.CertificatePal.FromBlob(Byte[] rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate.cs(83,0): at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate2.cs(62,0): at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.Pkcs/tests/CertLoader.cs(86,0): at Test.Cryptography.CertLoader.TryGetCertificateWithPrivateKey(Boolean exportable)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(846,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.BuildCustomToken(CertLoader cert, DateTimeOffset timestamp, SigningCertificateOption v1Option, SigningCertificateOption v2Option, HashAlgorithmName v2DigestAlg, X509IncludeOption includeOption, SubjectIdentifierType identifierType)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(755,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CustomBuild_CertMismatch(CertLoader loader, DateTimeOffset referenceTime, SigningCertificateOption v1Option, SigningCertificateOption v2Option, HashAlgorithmName v2AlgorithmName, X509IncludeOption includeOption, SubjectIdentifierType identifierType)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(699,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.NoTsaEku(X509IncludeOption includeOption)
    System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CertHashMismatchV1(includeOption: WholeChain) [FAIL]
      Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : An internal consistency check failed.
      Stack Trace:
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(204,0): at Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(Byte[] rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(88,0): at Internal.Cryptography.Pal.CertificatePal.FromBlobOrFile(Byte[] rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(21,0): at Internal.Cryptography.Pal.CertificatePal.FromBlob(Byte[] rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate.cs(83,0): at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate2.cs(62,0): at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.Pkcs/tests/CertLoader.cs(86,0): at Test.Cryptography.CertLoader.TryGetCertificateWithPrivateKey(Boolean exportable)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(846,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.BuildCustomToken(CertLoader cert, DateTimeOffset timestamp, SigningCertificateOption v1Option, SigningCertificateOption v2Option, HashAlgorithmName v2DigestAlg, X509IncludeOption includeOption, SubjectIdentifierType identifierType)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(755,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CustomBuild_CertMismatch(CertLoader loader, DateTimeOffset referenceTime, SigningCertificateOption v1Option, SigningCertificateOption v2Option, HashAlgorithmName v2AlgorithmName, X509IncludeOption includeOption, SubjectIdentifierType identifierType)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(258,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CertHashMismatchV1(X509IncludeOption includeOption)
    System.Security.Cryptography.Pkcs.Tests.SignedCmsTests.AddSecondSigner_NoSignature_LoadUnsigned(detached: True) [FAIL]
      Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : An internal consistency check failed.
      Stack Trace:
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(204,0): at Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(Byte[] rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(88,0): at Internal.Cryptography.Pal.CertificatePal.FromBlobOrFile(Byte[] rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(21,0): at Internal.Cryptography.Pal.CertificatePal.FromBlob(Byte[] rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate.cs(83,0): at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate2.cs(62,0): at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.Pkcs/tests/CertLoader.cs(86,0): at Test.Cryptography.CertLoader.TryGetCertificateWithPrivateKey(Boolean exportable)
        /_/src/System.Security.Cryptography.Pkcs/tests/SignedCms/SignedCmsTests.cs(856,0): at System.Security.Cryptography.Pkcs.Tests.SignedCmsTests.AddSecondSigner_NoSignature_LoadUnsigned(Boolean detached)
    System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CertHashMismatchV1(includeOption: None) [FAIL]
      Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : An internal consistency check failed.
      Stack Trace:
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(204,0): at Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(Byte[] rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(88,0): at Internal.Cryptography.Pal.CertificatePal.FromBlobOrFile(Byte[] rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(21,0): at Internal.Cryptography.Pal.CertificatePal.FromBlob(Byte[] rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate.cs(83,0): at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate2.cs(62,0): at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.Pkcs/tests/CertLoader.cs(86,0): at Test.Cryptography.CertLoader.TryGetCertificateWithPrivateKey(Boolean exportable)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(846,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.BuildCustomToken(CertLoader cert, DateTimeOffset timestamp, SigningCertificateOption v1Option, SigningCertificateOption v2Option, HashAlgorithmName v2DigestAlg, X509IncludeOption includeOption, SubjectIdentifierType identifierType)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(755,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CustomBuild_CertMismatch(CertLoader loader, DateTimeOffset referenceTime, SigningCertificateOption v1Option, SigningCertificateOption v2Option, HashAlgorithmName v2AlgorithmName, X509IncludeOption includeOption, SubjectIdentifierType identifierType)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(258,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CertHashMismatchV1(X509IncludeOption includeOption)
    System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CertMismatchIssuerAndSerialV2(includeOption: None, v2Option: ValidHashWithInvalidName, identifierType: IssuerAndSerialNumber, hashAlgName: null) [FAIL]
      Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : An internal consistency check failed.
      Stack Trace:
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(204,0): at Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(Byte[] rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(88,0): at Internal.Cryptography.Pal.CertificatePal.FromBlobOrFile(Byte[] rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(21,0): at Internal.Cryptography.Pal.CertificatePal.FromBlob(Byte[] rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate.cs(83,0): at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate2.cs(62,0): at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.Pkcs/tests/CertLoader.cs(86,0): at Test.Cryptography.CertLoader.TryGetCertificateWithPrivateKey(Boolean exportable)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(846,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.BuildCustomToken(CertLoader cert, DateTimeOffset timestamp, SigningCertificateOption v1Option, SigningCertificateOption v2Option, HashAlgorithmName v2DigestAlg, X509IncludeOption includeOption, SubjectIdentifierType identifierType)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(755,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CustomBuild_CertMismatch(CertLoader loader, DateTimeOffset referenceTime, SigningCertificateOption v1Option, SigningCertificateOption v2Option, HashAlgorithmName v2AlgorithmName, X509IncludeOption includeOption, SubjectIdentifierType identifierType)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(411,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CertMismatchIssuerAndSerialV2(X509IncludeOption includeOption, SigningCertificateOption v2Option, SubjectIdentifierType identifierType, String hashAlgName)
    System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CertMismatchV1OrV2(includeOption: WholeChain, v1Option: InvalidHashWithInvalidSerial, v2Option: ValidHashNoName, identifierType: IssuerAndSerialNumber, hashAlgName: null) [FAIL]
      Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : An internal consistency check failed.
      Stack Trace:
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(204,0): at Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(Byte[] rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(88,0): at Internal.Cryptography.Pal.CertificatePal.FromBlobOrFile(Byte[] rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(21,0): at Internal.Cryptography.Pal.CertificatePal.FromBlob(Byte[] rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate.cs(83,0): at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate2.cs(62,0): at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.Pkcs/tests/CertLoader.cs(86,0): at Test.Cryptography.CertLoader.TryGetCertificateWithPrivateKey(Boolean exportable)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(846,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.BuildCustomToken(CertLoader cert, DateTimeOffset timestamp, SigningCertificateOption v1Option, SigningCertificateOption v2Option, HashAlgorithmName v2DigestAlg, X509IncludeOption includeOption, SubjectIdentifierType identifierType)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(755,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CustomBuild_CertMismatch(CertLoader loader, DateTimeOffset referenceTime, SigningCertificateOption v1Option, SigningCertificateOption v2Option, HashAlgorithmName v2AlgorithmName, X509IncludeOption includeOption, SubjectIdentifierType identifierType)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(555,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CertMismatchV1OrV2(X509IncludeOption includeOption, SigningCertificateOption v1Option, SigningCertificateOption v2Option, SubjectIdentifierType identifierType, String hashAlgName)
    System.Security.Cryptography.Pkcs.Tests.SignedCmsTests.AddSigner_RSA_EphemeralKey [FAIL]
      Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : An internal consistency check failed.
      Stack Trace:
        /_/src/Common/src/Internal/Cryptography/CngCommon.SignVerify.cs(77,0): at Internal.Cryptography.CngCommon.TrySignHash(SafeNCryptKeyHandle keyHandle, ReadOnlySpan`1 hash, Span`1 signature, AsymmetricPaddingMode paddingMode, Void* pPaddingInfo, Int32& bytesWritten)
        /_/src/Common/src/System/Security/Cryptography/RSACng.SignVerify.cs(126,0): at System.Security.Cryptography.RSACng.TrySignHash(ReadOnlySpan`1 hash, Span`1 destination, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, Int32& bytesWritten)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSignature.RSA.cs(157,0): at System.Security.Cryptography.Pkcs.CmsSignature.RSAPkcs1CmsSignature.Sign(ReadOnlySpan`1 dataHash, HashAlgorithmName hashAlgorithmName, X509Certificate2 certificate, AsymmetricAlgorithm key, Boolean silent, Oid& signatureAlgorithm, Byte[]& signatureValue)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSignature.cs(95,0): at System.Security.Cryptography.Pkcs.CmsSignature.Sign(ReadOnlySpan`1 dataHash, HashAlgorithmName hashAlgorithmName, X509Certificate2 certificate, AsymmetricAlgorithm key, Boolean silent, Oid& oid, ReadOnlyMemory`1& signatureValue)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSigner.cs(233,0): at System.Security.Cryptography.Pkcs.CmsSigner.Sign(ReadOnlyMemory`1 data, String contentTypeOid, Boolean silent, X509Certificate2Collection& chainCerts)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/SignedCms.cs(323,0): at System.Security.Cryptography.Pkcs.SignedCms.ComputeSignature(CmsSigner signer, Boolean silent)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/SignedCms.cs(274,0): at System.Security.Cryptography.Pkcs.SignedCms.ComputeSignature(CmsSigner signer)
        /_/src/System.Security.Cryptography.Pkcs/tests/SignedCms/SignedCmsTests.netcoreapp.cs(399,0): at System.Security.Cryptography.Pkcs.Tests.SignedCmsTests.AddSigner_RSA_EphemeralKey()
    System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CertMismatchIssuerAndSerialV1(includeOption: None, v1Option: ValidHashWithInvalidName, identifierType: IssuerAndSerialNumber) [FAIL]
      Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : An internal consistency check failed.
      Stack Trace:
        /_/src/Common/src/Internal/Cryptography/CngCommon.SignVerify.cs(77,0): at Internal.Cryptography.CngCommon.TrySignHash(SafeNCryptKeyHandle keyHandle, ReadOnlySpan`1 hash, Span`1 signature, AsymmetricPaddingMode paddingMode, Void* pPaddingInfo, Int32& bytesWritten)
        /_/src/Common/src/System/Security/Cryptography/RSACng.SignVerify.cs(126,0): at System.Security.Cryptography.RSACng.TrySignHash(ReadOnlySpan`1 hash, Span`1 destination, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, Int32& bytesWritten)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSignature.RSA.cs(157,0): at System.Security.Cryptography.Pkcs.CmsSignature.RSAPkcs1CmsSignature.Sign(ReadOnlySpan`1 dataHash, HashAlgorithmName hashAlgorithmName, X509Certificate2 certificate, AsymmetricAlgorithm key, Boolean silent, Oid& signatureAlgorithm, Byte[]& signatureValue)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSignature.cs(95,0): at System.Security.Cryptography.Pkcs.CmsSignature.Sign(ReadOnlySpan`1 dataHash, HashAlgorithmName hashAlgorithmName, X509Certificate2 certificate, AsymmetricAlgorithm key, Boolean silent, Oid& oid, ReadOnlyMemory`1& signatureValue)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSigner.cs(233,0): at System.Security.Cryptography.Pkcs.CmsSigner.Sign(ReadOnlyMemory`1 data, String contentTypeOid, Boolean silent, X509Certificate2Collection& chainCerts)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/SignedCms.cs(323,0): at System.Security.Cryptography.Pkcs.SignedCms.ComputeSignature(CmsSigner signer, Boolean silent)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/SignedCms.cs(274,0): at System.Security.Cryptography.Pkcs.SignedCms.ComputeSignature(CmsSigner signer)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(978,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.BuildCustomToken(CertLoader cert, DateTimeOffset timestamp, SigningCertificateOption v1Option, SigningCertificateOption v2Option, HashAlgorithmName v2DigestAlg, X509IncludeOption includeOption, SubjectIdentifierType identifierType)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(755,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CustomBuild_CertMismatch(CertLoader loader, DateTimeOffset referenceTime, SigningCertificateOption v1Option, SigningCertificateOption v2Option, HashAlgorithmName v2AlgorithmName, X509IncludeOption includeOption, SubjectIdentifierType identifierType)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(288,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CertMismatchIssuerAndSerialV1(X509IncludeOption includeOption, SigningCertificateOption v1Option, SubjectIdentifierType identifierType)
    System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.TryDecode_Fails_MalformedToken [FAIL]
      Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : An internal consistency check failed.
      Stack Trace:
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(204,0): at Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(Byte[] rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(88,0): at Internal.Cryptography.Pal.CertificatePal.FromBlobOrFile(Byte[] rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(21,0): at Internal.Cryptography.Pal.CertificatePal.FromBlob(Byte[] rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate.cs(83,0): at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate2.cs(62,0): at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.Pkcs/tests/CertLoader.cs(86,0): at Test.Cryptography.CertLoader.TryGetCertificateWithPrivateKey(Boolean exportable)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(222,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.TryDecode_Fails_MalformedToken()
    System.Security.Cryptography.Pkcs.Tests.SignedCmsTests.EnsureDataIsolation_NewDocument(detached: False) [FAIL]
      Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : An internal consistency check failed.
      Stack Trace:
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(204,0): at Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(Byte[] rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(88,0): at Internal.Cryptography.Pal.CertificatePal.FromBlobOrFile(Byte[] rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(21,0): at Internal.Cryptography.Pal.CertificatePal.FromBlob(Byte[] rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate.cs(83,0): at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate2.cs(62,0): at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.Pkcs/tests/CertLoader.cs(86,0): at Test.Cryptography.CertLoader.TryGetCertificateWithPrivateKey(Boolean exportable)
        /_/src/System.Security.Cryptography.Pkcs/tests/SignedCms/SignedCmsTests.cs(1150,0): at System.Security.Cryptography.Pkcs.Tests.SignedCmsTests.EnsureDataIsolation_NewDocument(Boolean detached)
    System.Security.Cryptography.Pkcs.Tests.SignedCmsTests.EnsureDataIsolation_NewDocument(detached: True) [FAIL]
      Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : An internal consistency check failed.
      Stack Trace:
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(204,0): at Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(Byte[] rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(88,0): at Internal.Cryptography.Pal.CertificatePal.FromBlobOrFile(Byte[] rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(21,0): at Internal.Cryptography.Pal.CertificatePal.FromBlob(Byte[] rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate.cs(83,0): at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate2.cs(62,0): at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.Pkcs/tests/CertLoader.cs(86,0): at Test.Cryptography.CertLoader.TryGetCertificateWithPrivateKey(Boolean exportable)
        /_/src/System.Security.Cryptography.Pkcs/tests/SignedCms/SignedCmsTests.cs(1150,0): at System.Security.Cryptography.Pkcs.Tests.SignedCmsTests.EnsureDataIsolation_NewDocument(Boolean detached)
    System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.MatchV2(includeOption: None, v2Option: ValidHashWithName, hashAlgName: "SHA1") [FAIL]
      Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : An internal consistency check failed.
      Stack Trace:
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(204,0): at Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(Byte[] rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(88,0): at Internal.Cryptography.Pal.CertificatePal.FromBlobOrFile(Byte[] rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(21,0): at Internal.Cryptography.Pal.CertificatePal.FromBlob(Byte[] rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate.cs(83,0): at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate2.cs(62,0): at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.Pkcs/tests/CertLoader.cs(86,0): at Test.Cryptography.CertLoader.TryGetCertificateWithPrivateKey(Boolean exportable)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(846,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.BuildCustomToken(CertLoader cert, DateTimeOffset timestamp, SigningCertificateOption v1Option, SigningCertificateOption v2Option, HashAlgorithmName v2DigestAlg, X509IncludeOption includeOption, SubjectIdentifierType identifierType)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(716,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CustomBuild_CertMatch(CertLoader loader, DateTimeOffset referenceTime, SigningCertificateOption v1Option, SigningCertificateOption v2Option, HashAlgorithmName v2AlgorithmName, X509IncludeOption includeOption, SubjectIdentifierType identifierType)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(335,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.MatchV2(X509IncludeOption includeOption, SigningCertificateOption v2Option, String hashAlgName)
    System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.MatchV2(includeOption: WholeChain, v2Option: ValidHashWithName, hashAlgName: "SHA384") [FAIL]
      Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : An internal consistency check failed.
      Stack Trace:
        /_/src/Common/src/Internal/Cryptography/CngCommon.SignVerify.cs(77,0): at Internal.Cryptography.CngCommon.TrySignHash(SafeNCryptKeyHandle keyHandle, ReadOnlySpan`1 hash, Span`1 signature, AsymmetricPaddingMode paddingMode, Void* pPaddingInfo, Int32& bytesWritten)
        /_/src/Common/src/System/Security/Cryptography/RSACng.SignVerify.cs(126,0): at System.Security.Cryptography.RSACng.TrySignHash(ReadOnlySpan`1 hash, Span`1 destination, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, Int32& bytesWritten)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSignature.RSA.cs(157,0): at System.Security.Cryptography.Pkcs.CmsSignature.RSAPkcs1CmsSignature.Sign(ReadOnlySpan`1 dataHash, HashAlgorithmName hashAlgorithmName, X509Certificate2 certificate, AsymmetricAlgorithm key, Boolean silent, Oid& signatureAlgorithm, Byte[]& signatureValue)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSignature.cs(95,0): at System.Security.Cryptography.Pkcs.CmsSignature.Sign(ReadOnlySpan`1 dataHash, HashAlgorithmName hashAlgorithmName, X509Certificate2 certificate, AsymmetricAlgorithm key, Boolean silent, Oid& oid, ReadOnlyMemory`1& signatureValue)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSigner.cs(233,0): at System.Security.Cryptography.Pkcs.CmsSigner.Sign(ReadOnlyMemory`1 data, String contentTypeOid, Boolean silent, X509Certificate2Collection& chainCerts)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/SignedCms.cs(323,0): at System.Security.Cryptography.Pkcs.SignedCms.ComputeSignature(CmsSigner signer, Boolean silent)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/SignedCms.cs(274,0): at System.Security.Cryptography.Pkcs.SignedCms.ComputeSignature(CmsSigner signer)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(978,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.BuildCustomToken(CertLoader cert, DateTimeOffset timestamp, SigningCertificateOption v1Option, SigningCertificateOption v2Option, HashAlgorithmName v2DigestAlg, X509IncludeOption includeOption, SubjectIdentifierType identifierType)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(716,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CustomBuild_CertMatch(CertLoader loader, DateTimeOffset referenceTime, SigningCertificateOption v1Option, SigningCertificateOption v2Option, HashAlgorithmName v2AlgorithmName, X509IncludeOption includeOption, SubjectIdentifierType identifierType)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(335,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.MatchV2(X509IncludeOption includeOption, SigningCertificateOption v2Option, String hashAlgName)
    System.Security.Cryptography.Pkcs.Tests.SignedCmsTests.SignCmsUsingExplicitECDsaP521Key [FAIL]
      Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : Invalid Signature.
      Stack Trace:
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(204,0): at Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(Byte[] rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(88,0): at Internal.Cryptography.Pal.CertificatePal.FromBlobOrFile(Byte[] rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(21,0): at Internal.Cryptography.Pal.CertificatePal.FromBlob(Byte[] rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate.cs(83,0): at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate2.cs(62,0): at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.Pkcs/tests/CertLoader.cs(86,0): at Test.Cryptography.CertLoader.TryGetCertificateWithPrivateKey(Boolean exportable)
        /_/src/System.Security.Cryptography.Pkcs/tests/SignedCms/SignedCmsTests.netcoreapp.cs(96,0): at System.Security.Cryptography.Pkcs.Tests.SignedCmsTests.SignCmsUsingExplicitECDsaP521Key()
    System.Security.Cryptography.Pkcs.Tests.SignedCmsTests.AddFirstSigner_RSA(identifierType: IssuerAndSerialNumber, detached: False) [FAIL]
      Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : An internal consistency check failed.
      Stack Trace:
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(204,0): at Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(Byte[] rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(88,0): at Internal.Cryptography.Pal.CertificatePal.FromBlobOrFile(Byte[] rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(21,0): at Internal.Cryptography.Pal.CertificatePal.FromBlob(Byte[] rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate.cs(83,0): at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate2.cs(62,0): at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.Pkcs/tests/CertLoader.cs(86,0): at Test.Cryptography.CertLoader.TryGetCertificateWithPrivateKey(Boolean exportable)
        /_/src/System.Security.Cryptography.Pkcs/tests/SignedCms/SignedCmsTests.cs(464,0): at System.Security.Cryptography.Pkcs.Tests.SignedCmsTests.AddFirstSigner_RSA(SubjectIdentifierType identifierType, Boolean detached)
    System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.MatchV1(includeOption: None, v1Option: ValidHashWithName) [FAIL]
      Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : An internal consistency check failed.
      Stack Trace:
        /_/src/Common/src/Internal/Cryptography/CngCommon.SignVerify.cs(77,0): at Internal.Cryptography.CngCommon.TrySignHash(SafeNCryptKeyHandle keyHandle, ReadOnlySpan`1 hash, Span`1 signature, AsymmetricPaddingMode paddingMode, Void* pPaddingInfo, Int32& bytesWritten)
        /_/src/Common/src/System/Security/Cryptography/RSACng.SignVerify.cs(126,0): at System.Security.Cryptography.RSACng.TrySignHash(ReadOnlySpan`1 hash, Span`1 destination, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, Int32& bytesWritten)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSignature.RSA.cs(157,0): at System.Security.Cryptography.Pkcs.CmsSignature.RSAPkcs1CmsSignature.Sign(ReadOnlySpan`1 dataHash, HashAlgorithmName hashAlgorithmName, X509Certificate2 certificate, AsymmetricAlgorithm key, Boolean silent, Oid& signatureAlgorithm, Byte[]& signatureValue)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSignature.cs(95,0): at System.Security.Cryptography.Pkcs.CmsSignature.Sign(ReadOnlySpan`1 dataHash, HashAlgorithmName hashAlgorithmName, X509Certificate2 certificate, AsymmetricAlgorithm key, Boolean silent, Oid& oid, ReadOnlyMemory`1& signatureValue)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSigner.cs(233,0): at System.Security.Cryptography.Pkcs.CmsSigner.Sign(ReadOnlyMemory`1 data, String contentTypeOid, Boolean silent, X509Certificate2Collection& chainCerts)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/SignedCms.cs(323,0): at System.Security.Cryptography.Pkcs.SignedCms.ComputeSignature(CmsSigner signer, Boolean silent)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/SignedCms.cs(274,0): at System.Security.Cryptography.Pkcs.SignedCms.ComputeSignature(CmsSigner signer)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(978,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.BuildCustomToken(CertLoader cert, DateTimeOffset timestamp, SigningCertificateOption v1Option, SigningCertificateOption v2Option, HashAlgorithmName v2DigestAlg, X509IncludeOption includeOption, SubjectIdentifierType identifierType)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(716,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CustomBuild_CertMatch(CertLoader loader, DateTimeOffset referenceTime, SigningCertificateOption v1Option, SigningCertificateOption v2Option, HashAlgorithmName v2AlgorithmName, X509IncludeOption includeOption, SubjectIdentifierType identifierType)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(245,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.MatchV1(X509IncludeOption includeOption, SigningCertificateOption v1Option)
    System.Security.Cryptography.Pkcs.Tests.SignedCmsTests.AddFirstSigner_RSA(identifierType: SubjectKeyIdentifier, detached: False) [FAIL]
      Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : An internal consistency check failed.
      Stack Trace:
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(204,0): at Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(Byte[] rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(88,0): at Internal.Cryptography.Pal.CertificatePal.FromBlobOrFile(Byte[] rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(21,0): at Internal.Cryptography.Pal.CertificatePal.FromBlob(Byte[] rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate.cs(83,0): at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate2.cs(62,0): at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.Pkcs/tests/CertLoader.cs(86,0): at Test.Cryptography.CertLoader.TryGetCertificateWithPrivateKey(Boolean exportable)
        /_/src/System.Security.Cryptography.Pkcs/tests/SignedCms/SignedCmsTests.cs(464,0): at System.Security.Cryptography.Pkcs.Tests.SignedCmsTests.AddFirstSigner_RSA(SubjectIdentifierType identifierType, Boolean detached)
    System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CertHashMismatchV2(includeOption: WholeChain, hashAlgName: null) [FAIL]
      Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : An internal consistency check failed.
      Stack Trace:
        /_/src/Common/src/Internal/Cryptography/CngCommon.SignVerify.cs(77,0): at Internal.Cryptography.CngCommon.TrySignHash(SafeNCryptKeyHandle keyHandle, ReadOnlySpan`1 hash, Span`1 signature, AsymmetricPaddingMode paddingMode, Void* pPaddingInfo, Int32& bytesWritten)
        /_/src/Common/src/System/Security/Cryptography/RSACng.SignVerify.cs(126,0): at System.Security.Cryptography.RSACng.TrySignHash(ReadOnlySpan`1 hash, Span`1 destination, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, Int32& bytesWritten)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSignature.RSA.cs(157,0): at System.Security.Cryptography.Pkcs.CmsSignature.RSAPkcs1CmsSignature.Sign(ReadOnlySpan`1 dataHash, HashAlgorithmName hashAlgorithmName, X509Certificate2 certificate, AsymmetricAlgorithm key, Boolean silent, Oid& signatureAlgorithm, Byte[]& signatureValue)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSignature.cs(95,0): at System.Security.Cryptography.Pkcs.CmsSignature.Sign(ReadOnlySpan`1 dataHash, HashAlgorithmName hashAlgorithmName, X509Certificate2 certificate, AsymmetricAlgorithm key, Boolean silent, Oid& oid, ReadOnlyMemory`1& signatureValue)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSigner.cs(233,0): at System.Security.Cryptography.Pkcs.CmsSigner.Sign(ReadOnlyMemory`1 data, String contentTypeOid, Boolean silent, X509Certificate2Collection& chainCerts)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/SignedCms.cs(323,0): at System.Security.Cryptography.Pkcs.SignedCms.ComputeSignature(CmsSigner signer, Boolean silent)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/SignedCms.cs(274,0): at System.Security.Cryptography.Pkcs.SignedCms.ComputeSignature(CmsSigner signer)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(978,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.BuildCustomToken(CertLoader cert, DateTimeOffset timestamp, SigningCertificateOption v1Option, SigningCertificateOption v2Option, HashAlgorithmName v2DigestAlg, X509IncludeOption includeOption, SubjectIdentifierType identifierType)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(755,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CustomBuild_CertMismatch(CertLoader loader, DateTimeOffset referenceTime, SigningCertificateOption v1Option, SigningCertificateOption v2Option, HashAlgorithmName v2AlgorithmName, X509IncludeOption includeOption, SubjectIdentifierType identifierType)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(355,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CertHashMismatchV2(X509IncludeOption includeOption, String hashAlgName)
    System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CertHashMismatchV2(includeOption: None, hashAlgName: null) [FAIL]
      Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : An internal consistency check failed.
      Stack Trace:
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(204,0): at Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(Byte[] rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(88,0): at Internal.Cryptography.Pal.CertificatePal.FromBlobOrFile(Byte[] rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(21,0): at Internal.Cryptography.Pal.CertificatePal.FromBlob(Byte[] rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate.cs(83,0): at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate2.cs(62,0): at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.Pkcs/tests/CertLoader.cs(86,0): at Test.Cryptography.CertLoader.TryGetCertificateWithPrivateKey(Boolean exportable)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(846,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.BuildCustomToken(CertLoader cert, DateTimeOffset timestamp, SigningCertificateOption v1Option, SigningCertificateOption v2Option, HashAlgorithmName v2DigestAlg, X509IncludeOption includeOption, SubjectIdentifierType identifierType)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(755,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CustomBuild_CertMismatch(CertLoader loader, DateTimeOffset referenceTime, SigningCertificateOption v1Option, SigningCertificateOption v2Option, HashAlgorithmName v2AlgorithmName, X509IncludeOption includeOption, SubjectIdentifierType identifierType)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(355,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CertHashMismatchV2(X509IncludeOption includeOption, String hashAlgName)
    System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CertHashMismatchV2(includeOption: WholeChain, hashAlgName: "MD5") [FAIL]
      Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : An internal consistency check failed.
      Stack Trace:
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(204,0): at Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(Byte[] rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(88,0): at Internal.Cryptography.Pal.CertificatePal.FromBlobOrFile(Byte[] rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(21,0): at Internal.Cryptography.Pal.CertificatePal.FromBlob(Byte[] rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate.cs(83,0): at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate2.cs(62,0): at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.Pkcs/tests/CertLoader.cs(86,0): at Test.Cryptography.CertLoader.TryGetCertificateWithPrivateKey(Boolean exportable)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(846,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.BuildCustomToken(CertLoader cert, DateTimeOffset timestamp, SigningCertificateOption v1Option, SigningCertificateOption v2Option, HashAlgorithmName v2DigestAlg, X509IncludeOption includeOption, SubjectIdentifierType identifierType)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(755,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CustomBuild_CertMismatch(CertLoader loader, DateTimeOffset referenceTime, SigningCertificateOption v1Option, SigningCertificateOption v2Option, HashAlgorithmName v2AlgorithmName, X509IncludeOption includeOption, SubjectIdentifierType identifierType)
        /_/src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs(355,0): at System.Security.Cryptography.Pkcs.Tests.TimestampTokenTests.CertHashMismatchV2(X509IncludeOption includeOption, String hashAlgName)
    System.Security.Cryptography.Pkcs.Tests.SignedCmsTests.AddSigner_ECDSA_EphemeralKey [FAIL]
      Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : Invalid Signature.
      Stack Trace:
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(204,0): at Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(Byte[] rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(88,0): at Internal.Cryptography.Pal.CertificatePal.FromBlobOrFile(Byte[] rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(21,0): at Internal.Cryptography.Pal.CertificatePal.FromBlob(Byte[] rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate.cs(83,0): at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate2.cs(62,0): at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.Pkcs/tests/CertLoader.cs(86,0): at Test.Cryptography.CertLoader.TryGetCertificateWithPrivateKey(Boolean exportable)
        /_/src/System.Security.Cryptography.Pkcs/tests/SignedCms/SignedCmsTests.netcoreapp.cs(439,0): at System.Security.Cryptography.Pkcs.Tests.SignedCmsTests.AddSigner_ECDSA_EphemeralKey()
    System.Security.Cryptography.Pkcs.EnvelopedCmsTests.Tests.DecryptTestsUsingExplicitPrivateKey.DecryptEnvelopedEmptyOctetString [FAIL]
      Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : An internal consistency check failed.
      Stack Trace:
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(204,0): at Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(Byte[] rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(88,0): at Internal.Cryptography.Pal.CertificatePal.FromBlobOrFile(Byte[] rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(21,0): at Internal.Cryptography.Pal.CertificatePal.FromBlob(Byte[] rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate.cs(83,0): at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate2.cs(62,0): at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.Pkcs/tests/CertLoader.cs(86,0): at Test.Cryptography.CertLoader.TryGetCertificateWithPrivateKey(Boolean exportable)
        /_/src/System.Security.Cryptography.Pkcs/tests/EnvelopedCms/DecryptTests.cs(834,0): at System.Security.Cryptography.Pkcs.EnvelopedCmsTests.Tests.DecryptTests.VerifySimpleDecrypt(Byte[] encodedMessage, CertLoader certLoader, ContentInfo expectedContent)
        /_/src/System.Security.Cryptography.Pkcs/tests/EnvelopedCms/DecryptTests.cs(826,0): at System.Security.Cryptography.Pkcs.EnvelopedCmsTests.Tests.DecryptTests.TestSimpleDecrypt_RoundTrip(CertLoader certLoader, ContentInfo contentInfo, String algorithmOidValue, SubjectIdentifierType type, ContentInfo expectedContentInfo)
        /_/src/System.Security.Cryptography.Pkcs/tests/EnvelopedCms/DecryptTests.cs(754,0): at System.Security.Cryptography.Pkcs.EnvelopedCmsTests.Tests.DecryptTests.DecryptEnvelopedEmptyOctetString()
    System.Security.Cryptography.Pkcs.EnvelopedCmsTests.Tests.DecryptTestsUsingExplicitPrivateKey.DecryptEnvelopedDataWithNonPkcs7Oid [FAIL]
      Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : An internal consistency check failed.
      Stack Trace:
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/EnvelopedCms.cs(208,0): at System.Security.Cryptography.Pkcs.EnvelopedCms.Decrypt(RecipientInfo recipientInfo, AsymmetricAlgorithm privateKey)
        /_/src/System.Security.Cryptography.Pkcs/tests/EnvelopedCms/DecryptTests.cs(845,0): at System.Security.Cryptography.Pkcs.EnvelopedCmsTests.Tests.DecryptTests.VerifySimpleDecrypt(Byte[] encodedMessage, CertLoader certLoader, ContentInfo expectedContent)
        /_/src/System.Security.Cryptography.Pkcs/tests/EnvelopedCms/DecryptTests.cs(826,0): at System.Security.Cryptography.Pkcs.EnvelopedCmsTests.Tests.DecryptTests.TestSimpleDecrypt_RoundTrip(CertLoader certLoader, ContentInfo contentInfo, String algorithmOidValue, SubjectIdentifierType type, ContentInfo expectedContentInfo)
        /_/src/System.Security.Cryptography.Pkcs/tests/EnvelopedCms/DecryptTests.cs(777,0): at System.Security.Cryptography.Pkcs.EnvelopedCmsTests.Tests.DecryptTests.DecryptEnvelopedDataWithNonPkcs7Oid()
    System.Security.Cryptography.Pkcs.Tests.SignedCmsTests.CounterSignCmsUsingExplicitRSAKeyForFirstSignerAndDSAForCounterSignature [FAIL]
      Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : An internal consistency check failed.
      Stack Trace:
        /_/src/Common/src/Internal/Cryptography/CngCommon.SignVerify.cs(77,0): at Internal.Cryptography.CngCommon.TrySignHash(SafeNCryptKeyHandle keyHandle, ReadOnlySpan`1 hash, Span`1 signature, AsymmetricPaddingMode paddingMode, Void* pPaddingInfo, Int32& bytesWritten)
        /_/src/Common/src/System/Security/Cryptography/RSACng.SignVerify.cs(126,0): at System.Security.Cryptography.RSACng.TrySignHash(ReadOnlySpan`1 hash, Span`1 destination, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, Int32& bytesWritten)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSignature.RSA.cs(157,0): at System.Security.Cryptography.Pkcs.CmsSignature.RSAPkcs1CmsSignature.Sign(ReadOnlySpan`1 dataHash, HashAlgorithmName hashAlgorithmName, X509Certificate2 certificate, AsymmetricAlgorithm key, Boolean silent, Oid& signatureAlgorithm, Byte[]& signatureValue)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSignature.cs(95,0): at System.Security.Cryptography.Pkcs.CmsSignature.Sign(ReadOnlySpan`1 dataHash, HashAlgorithmName hashAlgorithmName, X509Certificate2 certificate, AsymmetricAlgorithm key, Boolean silent, Oid& oid, ReadOnlyMemory`1& signatureValue)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSigner.cs(233,0): at System.Security.Cryptography.Pkcs.CmsSigner.Sign(ReadOnlyMemory`1 data, String contentTypeOid, Boolean silent, X509Certificate2Collection& chainCerts)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/SignedCms.cs(323,0): at System.Security.Cryptography.Pkcs.SignedCms.ComputeSignature(CmsSigner signer, Boolean silent)
        /_/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/SignedCms.cs(274,0): at System.Security.Cryptography.Pkcs.SignedCms.ComputeSignature(CmsSigner signer)
        /_/src/System.Security.Cryptography.Pkcs/tests/SignedCms/SignedCmsTests.netcoreapp.cs(526,0): at System.Security.Cryptography.Pkcs.Tests.SignedCmsTests.VerifyCounterSignatureWithExplicitPrivateKey(X509Certificate2 cert, AsymmetricAlgorithm key, X509Certificate2 counterSignerCert, AsymmetricAlgorithm counterSignerKey)
        /_/src/System.Security.Cryptography.Pkcs/tests/SignedCms/SignedCmsTests.netcoreapp.cs(111,0): at System.Security.Cryptography.Pkcs.Tests.SignedCmsTests.CounterSignCmsUsingExplicitRSAKeyForFirstSignerAndDSAForCounterSignature()
    System.Security.Cryptography.Pkcs.EnvelopedCmsTests.Tests.DecryptTestsUsingExplicitPrivateKey.DecryptEnvelopedEmptyArray [FAIL]
      Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : An internal consistency check failed.
      Stack Trace:
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(204,0): at Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(Byte[] rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(88,0): at Internal.Cryptography.Pal.CertificatePal.FromBlobOrFile(Byte[] rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.Import.cs(21,0): at Internal.Cryptography.Pal.CertificatePal.FromBlob(Byte[] rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate.cs(83,0): at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate2.cs(62,0): at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
        /_/src/System.Security.Cryptography.Pkcs/tests/CertLoader.cs(86,0): at Test.Cryptography.CertLoader.TryGetCertificateWithPrivateKey(Boolean exportable)
        /_/src/System.Security.Cryptography.Pkcs/tests/EnvelopedCms/DecryptTests.cs(834,0): at System.Security.Cryptography.Pkcs.EnvelopedCmsTests.Tests.DecryptTests.VerifySimpleDecrypt(Byte[] encodedMessage, CertLoader certLoader, ContentInfo expectedContent)
        /_/src/System.Security.Cryptography.Pkcs/tests/EnvelopedCms/DecryptTests.cs(826,0): at System.Security.Cryptography.Pkcs.EnvelopedCmsTests.Tests.DecryptTests.TestSimpleDecrypt_RoundTrip(CertLoader certLoader, ContentInfo contentInfo, String algorithmOidValue, SubjectIdentifierType type, ContentInfo expectedContentInfo)
        /_/src/System.Security.Cryptography.Pkcs/tests/EnvelopedCms/DecryptTests.cs(742,0): at System.Security.Cryptography.Pkcs.EnvelopedCmsTests.Tests.DecryptTests.DecryptEnvelopedEmptyArray()
  Finished:    System.Security.Cryptography.Pkcs.Tests
=== TEST EXECUTION SUMMARY ===
   System.Security.Cryptography.Pkcs.Tests  Total: 856, Errors: 0, Failed: 27, Skipped: 2, Time: 6.854s
----- end Wed 10/23/2019  7:49:20.68 ----- exit code 1 ----------------------------------------------------------

Runfo Tracking Issue: Inconsistency exception WindowsCryptographicException

Definition Build Kind Job Name

Build Result Summary

Day Hit Count Week Hit Count Month Hit Count
0 0 0
@ahsonkhan
Copy link
Member Author

cc @bartonjs

@jkotas
Copy link
Member

jkotas commented Jan 12, 2020

Happened again in #1609

@msftgits msftgits transferred this issue from dotnet/corefx Feb 1, 2020
@maryamariyan maryamariyan added the untriaged New issue has not been triaged by the area owner label Feb 23, 2020
@bartonjs bartonjs added this to the Future milestone Jul 8, 2020
@bartonjs bartonjs added tracking-external-issue The issue is caused by external problem (e.g. OS) - nothing we can do to fix it directly and removed untriaged New issue has not been triaged by the area owner labels Jul 8, 2020
@bartonjs
Copy link
Member

bartonjs commented Jul 6, 2022

No NTE_INTERNAL_ERROR failures have happened in PKCS tests in the current Kusto data; closing as transient host OS issue.

@bartonjs bartonjs closed this as completed Jul 6, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Aug 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Security tracking-external-issue The issue is caused by external problem (e.g. OS) - nothing we can do to fix it directly
Projects
None yet
Development

No branches or pull requests

4 participants