diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2021-01-04 21:06:31 +0100 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2021-01-04 21:06:31 +0100 |
commit | 32566e4d640e354adaa83cf9b7240bfc2cdd83e3 (patch) | |
tree | ef025e3f6894d660fdd41443ed3fc453b2f331cc | |
parent | 9acdb2720b7afe82c804725db816d0914bc74648 (diff) |
server: Move PASSHASH defines to separate header
-rw-r--r-- | db.c | 4 | ||||
-rw-r--r-- | hashing_settings.h | 7 |
2 files changed, 8 insertions, 3 deletions
@@ -5,6 +5,7 @@ #include <sqlite3.h> #include <sodium.h> #include "db.h" +#include "hashing_settings.h" #include "schema.sql.h" @@ -12,9 +13,6 @@ #define DATABASE_VERSION 3 -#define PASSHASH_OPSLIMIT 3 -#define PASSHASH_MEMLIMIT crypto_pwhash_MEMLIMIT_INTERACTIVE - #define MAX_DATABASE_SIZE_BYTES ((i64)2 * 1024 * 1024 * 1024) // #define INSECURE_PURE_SPEED diff --git a/hashing_settings.h b/hashing_settings.h new file mode 100644 index 0000000..f4daef0 --- /dev/null +++ b/hashing_settings.h @@ -0,0 +1,7 @@ +#pragma once + +#include <sodium.h> + + +#define PASSHASH_OPSLIMIT 3 +#define PASSHASH_MEMLIMIT crypto_pwhash_MEMLIMIT_INTERACTIVE |