mirror of
https://github.com/wismna/ModernKeePassLib.git
synced 2025-10-04 16:10:16 -04:00
Downgrade to net standard 1.2
This commit is contained in:
10
ModernKeePassLib/Cryptography/Hash/HMACSHA256.cs
Normal file
10
ModernKeePassLib/Cryptography/Hash/HMACSHA256.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System.Runtime.InteropServices.WindowsRuntime;
|
||||
using Windows.Security.Cryptography.Core;
|
||||
|
||||
namespace ModernKeePassLib.Cryptography.Hash
|
||||
{
|
||||
public class HMACSHA256: HashAlgorithm
|
||||
{
|
||||
public HMACSHA256(byte[] key) : base (MacAlgorithmProvider.OpenAlgorithm(MacAlgorithmNames.HmacSha256).CreateHash(key.AsBuffer())) {}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user