From 355f7d562dda9bb5a042abc9ed8394411b049066 Mon Sep 17 00:00:00 2001 From: Slavasil Date: Sun, 23 Nov 2025 18:13:31 +0300 Subject: [PATCH] add class for constants related to the file format --- src/KeyKeeper/PasswordStore/FileFormatConstants.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/KeyKeeper/PasswordStore/FileFormatConstants.cs diff --git a/src/KeyKeeper/PasswordStore/FileFormatConstants.cs b/src/KeyKeeper/PasswordStore/FileFormatConstants.cs new file mode 100644 index 0000000..e76ebe2 --- /dev/null +++ b/src/KeyKeeper/PasswordStore/FileFormatConstants.cs @@ -0,0 +1,11 @@ +namespace KeyKeeper.PasswordStore; + +static class FileFormatConstants +{ + public const int MIN_MASTER_SALT_LEN = 8; + public const int MAX_MASTER_SALT_LEN = 40; + public const int MIN_AESKDF_ROUNDS = 10; + public const int MAX_AESKDF_ROUNDS = 65536; + public const byte ENCRYPT_ALGO_AES = 14; + public const byte KDF_TYPE_AESKDF = 195; +} \ No newline at end of file