aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/common.h3
-rw-r--r--src/keccak-224sum.c2
-rw-r--r--src/keccak-256sum.c2
-rw-r--r--src/keccak-384sum.c2
-rw-r--r--src/keccak-512sum.c2
-rw-r--r--src/keccaksum.c2
6 files changed, 7 insertions, 6 deletions
diff --git a/src/common.h b/src/common.h
index 3c9d43d..8246e6c 100644
--- a/src/common.h
+++ b/src/common.h
@@ -24,7 +24,8 @@
#include <argparser.h>
-#define libkeccak_spec_keccak libkeccak_spec_sha3
+#define libkeccak_spec_keccak libkeccak_spec_sha3
+#define LIBKECCAK_KECCAK_SUFFIX ""
diff --git a/src/keccak-224sum.c b/src/keccak-224sum.c
index ca6a415..147ff77 100644
--- a/src/keccak-224sum.c
+++ b/src/keccak-224sum.c
@@ -25,6 +25,6 @@ int main(int argc, char* argv[])
libkeccak_generalised_spec_t spec;
libkeccak_generalised_spec_initialise(&spec);
libkeccak_spec_keccak((libkeccak_spec_t*)&spec, 224);
- return RUN("Keccak", "keccak-224sum", "");
+ return RUN("Keccak", "keccak-224sum", LIBKECCAK_KECCAK_SUFFIX);
}
diff --git a/src/keccak-256sum.c b/src/keccak-256sum.c
index 8e2b26b..ae13efb 100644
--- a/src/keccak-256sum.c
+++ b/src/keccak-256sum.c
@@ -25,6 +25,6 @@ int main(int argc, char* argv[])
libkeccak_generalised_spec_t spec;
libkeccak_generalised_spec_initialise(&spec);
libkeccak_spec_keccak((libkeccak_spec_t*)&spec, 256);
- return RUN("Keccak", "keccak-256sum", "");
+ return RUN("Keccak", "keccak-256sum", LIBKECCAK_KECCAK_SUFFIX);
}
diff --git a/src/keccak-384sum.c b/src/keccak-384sum.c
index f40ac77..16a7e8e 100644
--- a/src/keccak-384sum.c
+++ b/src/keccak-384sum.c
@@ -25,6 +25,6 @@ int main(int argc, char* argv[])
libkeccak_generalised_spec_t spec;
libkeccak_generalised_spec_initialise(&spec);
libkeccak_spec_keccak((libkeccak_spec_t*)&spec, 384);
- return RUN("Keccak", "keccak-384sum", "");
+ return RUN("Keccak", "keccak-384sum", LIBKECCAK_KECCAK_SUFFIX);
}
diff --git a/src/keccak-512sum.c b/src/keccak-512sum.c
index 02ab126..1ddd872 100644
--- a/src/keccak-512sum.c
+++ b/src/keccak-512sum.c
@@ -25,6 +25,6 @@ int main(int argc, char* argv[])
libkeccak_generalised_spec_t spec;
libkeccak_generalised_spec_initialise(&spec);
libkeccak_spec_keccak((libkeccak_spec_t*)&spec, 512);
- return RUN("Keccak", "keccak-512sum", "");
+ return RUN("Keccak", "keccak-512sum", LIBKECCAK_KECCAK_SUFFIX);
}
diff --git a/src/keccaksum.c b/src/keccaksum.c
index 1fea5ec..62c9c6e 100644
--- a/src/keccaksum.c
+++ b/src/keccaksum.c
@@ -24,6 +24,6 @@ int main(int argc, char* argv[])
{
libkeccak_generalised_spec_t spec;
libkeccak_generalised_spec_initialise(&spec);
- return RUN("Keccak", "keccaksum", "");
+ return RUN("Keccak", "keccaksum", LIBKECCAK_KECCAK_SUFFIX);
}