From 37e7dd5963732cfd2391dd9102daa92652ed6e4b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 15 Nov 2014 01:52:28 +0100 Subject: add constant for empty suffix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/common.h | 3 ++- src/keccak-224sum.c | 2 +- src/keccak-256sum.c | 2 +- src/keccak-384sum.c | 2 +- src/keccak-512sum.c | 2 +- src/keccaksum.c | 2 +- 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 -#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); } -- cgit v1.2.3-70-g09d2