Skip to content

Cryptography types unsealed in netstandard2.0 #37206

Description

@fabiomaulo

These classes are marked as sealed (static) in netstandard2.0 :

System.Security.Cryptography.SHA1Managed
System.Security.Cryptography.SHA256Managed
System.Security.Cryptography.SHA384Managed
System.Security.Cryptography.SHA512Managed

we can´t inherit so we can´t use HashCore nor HashFinal.
The implementation is just a wrapper/proxy of HashProvider but HashProvider is an internal class.
I can understand you don´t want us to use it but we need some alternative for some scenario where performances and memory usage are an issue. In my case I have to "manipulate" large streams during the hash calculation and to do it I need to use HashCore and HashFinal.
Is there a chance to remove the sealed just to the class?

related issue: #20870

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-suggestionEarly API idea and discussion, it is NOT ready for implementationarea-System.SecurityuntriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions