aboutsummaryrefslogtreecommitdiff
path: root/hashing_settings.h
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2021-01-04 21:06:31 +0100
committerTom Smeding <tom.smeding@gmail.com>2021-01-04 21:06:31 +0100
commit32566e4d640e354adaa83cf9b7240bfc2cdd83e3 (patch)
treeef025e3f6894d660fdd41443ed3fc453b2f331cc /hashing_settings.h
parent9acdb2720b7afe82c804725db816d0914bc74648 (diff)
server: Move PASSHASH defines to separate header
Diffstat (limited to 'hashing_settings.h')
-rw-r--r--hashing_settings.h7
1 files changed, 7 insertions, 0 deletions
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