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

Test failure System.Security.Cryptography.Dsa.Tests.DSASignVerify_Stream.InvalidKeySize_DoesNotInvalidateKey #63773

Closed
VincentBu opened this issue Jan 14, 2022 · 2 comments
Labels
arch-x86 area-System.Security os-windows untriaged New issue has not been triaged by the area owner

Comments

@VincentBu
Copy link
Contributor

Run: runtime 20220113.81

Failed test:

net7.0-windows-Release-x86-CoreCLR_checked-Windows.10.Amd64.Open

- System.Security.Cryptography.Dsa.Tests.DSASignVerify_Stream.InvalidKeySize_DoesNotInvalidateKey

Error message:

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


Stack trace
   at System.Security.Cryptography.CngKeyLite.GenerateNewExportableKey(String algorithm, Int32 keySize) in /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/CngKeyLite.cs:line 408
   at System.Security.Cryptography.DSAImplementation.DSACng.GetDuplicatedKeyHandle() in /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/DSACng.cs:line 48
   at System.Security.Cryptography.DSAImplementation.DSACng.ComputeQLength() in /_/src/libraries/Common/src/System/Security/Cryptography/DSACng.SignVerify.cs:line 178
   at System.Security.Cryptography.DSAImplementation.DSACng.AdjustHashSizeIfNecessary(ReadOnlySpan`1 hash, Span`1 stackBuf) in /_/src/libraries/Common/src/System/Security/Cryptography/DSACng.SignVerify.cs:line 156
   at System.Security.Cryptography.DSAImplementation.DSACng.CreateSignature(Byte[] rgbHash) in /_/src/libraries/Common/src/System/Security/Cryptography/DSACng.SignVerify.cs:line 32
   at System.Security.Cryptography.DSA.SignData(Stream data, HashAlgorithmName hashAlgorithm) in /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/DSA.cs:line 251
   at System.Security.Cryptography.Dsa.Tests.DSASignVerify_Stream.SignData(DSA dsa, Byte[] data, HashAlgorithmName hashAlgorithm) in /_/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/DSA/DSASignVerify.cs:line 61
   at System.Security.Cryptography.Dsa.Tests.DSASignVerify.InvalidKeySize_DoesNotInvalidateKey() in /_/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/DSA/DSASignVerify.cs:line 123
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Jan 14, 2022
@ghost
Copy link

ghost commented Jan 14, 2022

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

Issue Details

Run: runtime 20220113.81

Failed test:

net7.0-windows-Release-x86-CoreCLR_checked-Windows.10.Amd64.Open

- System.Security.Cryptography.Dsa.Tests.DSASignVerify_Stream.InvalidKeySize_DoesNotInvalidateKey

Error message:

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


Stack trace
   at System.Security.Cryptography.CngKeyLite.GenerateNewExportableKey(String algorithm, Int32 keySize) in /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/CngKeyLite.cs:line 408
   at System.Security.Cryptography.DSAImplementation.DSACng.GetDuplicatedKeyHandle() in /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/DSACng.cs:line 48
   at System.Security.Cryptography.DSAImplementation.DSACng.ComputeQLength() in /_/src/libraries/Common/src/System/Security/Cryptography/DSACng.SignVerify.cs:line 178
   at System.Security.Cryptography.DSAImplementation.DSACng.AdjustHashSizeIfNecessary(ReadOnlySpan`1 hash, Span`1 stackBuf) in /_/src/libraries/Common/src/System/Security/Cryptography/DSACng.SignVerify.cs:line 156
   at System.Security.Cryptography.DSAImplementation.DSACng.CreateSignature(Byte[] rgbHash) in /_/src/libraries/Common/src/System/Security/Cryptography/DSACng.SignVerify.cs:line 32
   at System.Security.Cryptography.DSA.SignData(Stream data, HashAlgorithmName hashAlgorithm) in /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/DSA.cs:line 251
   at System.Security.Cryptography.Dsa.Tests.DSASignVerify_Stream.SignData(DSA dsa, Byte[] data, HashAlgorithmName hashAlgorithm) in /_/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/DSA/DSASignVerify.cs:line 61
   at System.Security.Cryptography.Dsa.Tests.DSASignVerify.InvalidKeySize_DoesNotInvalidateKey() in /_/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/DSA/DSASignVerify.cs:line 123
Author: VincentBu
Assignees: -
Labels:

arch-x86, area-System.Security, os-windows

Milestone: -

@vcsjones
Copy link
Member

Duplicate of #25979

@vcsjones vcsjones marked this as a duplicate of #25979 Jan 14, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Feb 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-x86 area-System.Security os-windows untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

2 participants