mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 23:50:18 -04:00
16 lines
365 B
C#
16 lines
365 B
C#
|
using Org.BouncyCastle.Crypto.Digests;
|
|||
|
using Org.BouncyCastle.Crypto.Macs;
|
|||
|
using Org.BouncyCastle.Crypto.Parameters;
|
|||
|
|
|||
|
namespace ModernKeePassLib.Cryptography.Hash
|
|||
|
{
|
|||
|
public class HMACSHA1: HMAC
|
|||
|
{
|
|||
|
public HMACSHA1(byte[] key)
|
|||
|
{
|
|||
|
_hmac = new HMac(new Sha1Digest());
|
|||
|
_hmac.Init(new KeyParameter(key));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|