More hashing services and HMAC services

This commit is contained in:
2024-09-08 17:08:22 +02:00
parent 535a2cedc0
commit def0258695
24 changed files with 275 additions and 56 deletions
@@ -0,0 +1,10 @@
using System.Security.Cryptography;
namespace System.Security.Hashing;
public sealed class HMACSha256Service : BaseHMACService<HMACSHA256>, IHMACSha256Service
{
protected override HMACSHA256 GetHashAlgorithm(byte[] key)
{
return new HMACSHA256(key);
}
}