-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Consolidate cryptography tests to System.Security.Cryptography #66338
Comments
Tagging subscribers to this area: @dotnet/area-system-security, @vcsjones Issue DetailsWith #55690 merged, the implementations of the S.S.Cryptography assemblies have been consolidated in to a single in-box assembly, where possible. The unit tests for these are still in their separate projects however, such as S.S.C.Algorithms, S.S.C.Cng, etc. This issue is to track consolidating them under System.Security.Cryptography. Note that this is not as simple as moving the files and adjusting namespaces. We made heavy use of partials to test different implementations of algorithms (internal vs public CNG for example). The partial approach won't work. The current solution is to refactor to a "driver" base type and test each implementation as a derived type.
|
Huh, thought I'd opened this already. But, I hadn't. Thanks 😄. https://github.com/bartonjs/runtime/commits/crypto_test_model has my first-draft thoughts here. They seemed to be fruitful, but certainly aren't a commitment. |
We could move X509Certificates pretty easily, if not for: runtime/src/libraries/System.Security.Cryptography.X509Certificates/tests/AssemblyInfo.cs Line 8 in c3cc9fd
I don't think we want to disable all of S.S.Cryptography tests on Mariner. But do we actually need to disable X509Certificates on Mariner? According to #57810 (comment), that I think the given options are:
cc @ViktorHofer in case you have any insight on the X509Certificate tests in Mariner. |
Moving to the Future/Indefinite milestone because it's just code cleanup and our own pain, nothing impacting customers. |
With #55690 merged, the implementations of the S.S.Cryptography assemblies have been consolidated in to a single in-box assembly, where possible.
The unit tests for these are still in their separate projects however, such as S.S.C.Algorithms, S.S.C.Cng, etc.
This issue is to track consolidating them under System.Security.Cryptography. Note that this is not as simple as moving the files and adjusting namespaces. We made heavy use of partials to test different implementations of algorithms (internal vs public CNG for example). The partial approach won't work. The current solution is to refactor to a "driver" base type and test each implementation as a derived type.
The text was updated successfully, but these errors were encountered: