mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-04 08:00:16 -04:00
Code cleanup in KeePassLib Code cleanup in ModernKeePass.Tests Argon2Kdf files can now be opened WIP - Argon2kdf files are corrupted on write
16 lines
363 B
C#
16 lines
363 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));
|
|
}
|
|
}
|
|
}
|