aboutsummaryrefslogtreecommitdiffstats
path: root/src/argon2-impl-select.h
diff options
context:
space:
mode:
authorben2019-05-27 21:40:41 +0200
committerben2019-05-27 21:40:41 +0200
commitaccdbc780617a4f4b30790ffb25ab1d26652c315 (patch)
tree2633c1246a35e7242bfc693959830ae63b641301 /src/argon2-impl-select.h
downloadinexact-accdbc780617a4f4b30790ffb25ab1d26652c315.tar.gz
inexact-accdbc780617a4f4b30790ffb25ab1d26652c315.tar.bz2
inexact-accdbc780617a4f4b30790ffb25ab1d26652c315.tar.xz
First public release
Diffstat (limited to 'src/argon2-impl-select.h')
-rw-r--r--src/argon2-impl-select.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/argon2-impl-select.h b/src/argon2-impl-select.h
new file mode 100644
index 0000000..29ba47c
--- /dev/null
+++ b/src/argon2-impl-select.h
@@ -0,0 +1,23 @@
+#ifndef ARGON2_IMPL_SELECT_H
+#define ARGON2_IMPL_SELECT_H
+
+#include "argon2-core.h"
+
+typedef struct Argon2_impl {
+ const char *name;
+ int (*check)(void);
+ void (*fill_segment)(const argon2_instance_t *instance,
+ argon2_position_t position);
+} argon2_impl;
+
+typedef struct Argon2_impl_list {
+ const argon2_impl *entries;
+ size_t count;
+} argon2_impl_list;
+
+void argon2_get_impl_list(argon2_impl_list *list);
+void fill_segment_default(const argon2_instance_t *instance,
+ argon2_position_t position);
+
+#endif // ARGON2_IMPL_SELECT_H
+