mirror of
https://github.com/wismna/ModernKeePassLib.git
synced 2025-10-03 23:50:20 -04:00
11 lines
345 B
C#
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())) {}
|
|||
|
}
|
|||
|
}
|