-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
api-approvedAPI was approved in API review, it can be implementedAPI was approved in API review, it can be implementedarea-System.Securityhelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributorstenet-performancePerformance related issuePerformance related issue
Milestone
Description
Separated out of https://github.com/dotnet/corefx/issues/21281 for tracking purposes.
- Implement in System.Security.Cryptography.Primitives in corefx
- Expose from System.Security.Cryptography.Primitives contract in corefx
- Add tests to System.Security.Cryptography.Primitives tests in corefx
namespace System.Security.Cryptography
{
public abstract class HashAlgorithm
{
public bool TryComputeHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten);
protected virtual void HashCore(ReadOnlySpan<byte> source);
protected virtual bool TryHashFinal(Span<byte> destination, out int bytesWritten);
…
}
}
These methods should then be overridden as-is appropriate on the implementations for:
- MD5
- SHA1
- SHA256
- SHA384
- SHA512
Metadata
Metadata
Assignees
Labels
api-approvedAPI was approved in API review, it can be implementedAPI was approved in API review, it can be implementedarea-System.Securityhelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributorstenet-performancePerformance related issuePerformance related issue