Files
modernkeepasslib/ModernKeePassLib/Cryptography/Hash/HMACSHA256.cs
2020-03-23 18:35:00 +01:00

11 lines
345 B
C#

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())) {}
}
}