Files
modernkeepass/ModernKeePassLib/Cryptography/Hash/HMACSHA1.cs
Geoffroy Bonneville a0d1c82afa Added lots of tests from Lib SelfTest.cs to Test project
Code cleanup in KeePassLib
Code cleanup in ModernKeePass.Tests
Argon2Kdf files can now be opened
WIP - Argon2kdf files are corrupted on write
2017-11-08 14:42:46 +01:00

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));
}
}
}