mirror of
https://github.com/wismna/ModernKeePassLib.git
synced 2025-10-04 16:10:16 -04:00
11 lines
339 B
C#
11 lines
339 B
C#
![]() |
using System.Runtime.InteropServices.WindowsRuntime;
|
|||
|
using Windows.Security.Cryptography.Core;
|
|||
|
|
|||
|
namespace ModernKeePassLib.Cryptography.Hash
|
|||
|
{
|
|||
|
public class HMACSHA1: HashAlgorithm
|
|||
|
{
|
|||
|
public HMACSHA1(byte[] key) : base (MacAlgorithmProvider.OpenAlgorithm(MacAlgorithmNames.HmacSha1).CreateHash(key.AsBuffer())) {}
|
|||
|
}
|
|||
|
}
|