summaryrefslogtreecommitdiff
path: root/zen/argon2.h
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2023-01-23 08:23:32 -0500
committerB. Stack <bgstack15@gmail.com>2023-01-23 08:23:32 -0500
commit91f14d963331ebe8a26149cc8e636a9a70ce1c82 (patch)
treeffe73914cec1969980ef741efabcd336fd10eac8 /zen/argon2.h
parentadd upstream 12.0 (diff)
downloadFreeFileSync-91f14d963331ebe8a26149cc8e636a9a70ce1c82.tar.gz
FreeFileSync-91f14d963331ebe8a26149cc8e636a9a70ce1c82.tar.bz2
FreeFileSync-91f14d963331ebe8a26149cc8e636a9a70ce1c82.zip
add argon2 when upstream did12.0
Diffstat (limited to 'zen/argon2.h')
-rw-r--r--zen/argon2.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/zen/argon2.h b/zen/argon2.h
new file mode 100644
index 00000000..cb325a45
--- /dev/null
+++ b/zen/argon2.h
@@ -0,0 +1,21 @@
+// *****************************************************************************
+// * This file is part of the FreeFileSync project. It is distributed under *
+// * GNU General Public License: https://www.gnu.org/licenses/gpl-3.0 *
+// * Copyright (C) Zenju (zenju AT freefilesync DOT org) - All Rights Reserved *
+// *****************************************************************************
+
+#ifndef ARGON2_H_0175896874598102356081374
+#define ARGON2_H_0175896874598102356081374
+
+#include <string>
+
+namespace zen
+{
+enum class Argon2Flavor { d, i, id };
+
+std::string zargon2(zen::Argon2Flavor flavour, uint32_t mem, uint32_t passes, uint32_t parallel, uint32_t taglen,
+ const std::string_view password, const std::string_view salt);
+
+}
+
+#endif //ARGON2_H_0175896874598102356081374
bgstack15