add a constant for the HMAC-SHA3-512 size

This commit is contained in:
2025-11-23 21:06:37 +03:00
parent 355f7d562d
commit 8eedf73e6d

View File

@@ -1,3 +1,5 @@
using System.Security.Cryptography;
namespace KeyKeeper.PasswordStore;
static class FileFormatConstants
@@ -8,4 +10,5 @@ static class FileFormatConstants
public const int MAX_AESKDF_ROUNDS = 65536;
public const byte ENCRYPT_ALGO_AES = 14;
public const byte KDF_TYPE_AESKDF = 195;
public const int HMAC_SIZE = HMACSHA3_512.HashSizeInBytes;
}