From 8eedf73e6d9533580e1a6814d0ac8a34600afd45 Mon Sep 17 00:00:00 2001 From: Slavasil Date: Sun, 23 Nov 2025 21:06:37 +0300 Subject: [PATCH] add a constant for the HMAC-SHA3-512 size --- src/KeyKeeper/PasswordStore/FileFormatConstants.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/KeyKeeper/PasswordStore/FileFormatConstants.cs b/src/KeyKeeper/PasswordStore/FileFormatConstants.cs index e76ebe2..6f755f7 100644 --- a/src/KeyKeeper/PasswordStore/FileFormatConstants.cs +++ b/src/KeyKeeper/PasswordStore/FileFormatConstants.cs @@ -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; } \ No newline at end of file