diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-11-15 01:52:28 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-11-15 01:52:28 +0100 |
commit | 37e7dd5963732cfd2391dd9102daa92652ed6e4b (patch) | |
tree | d22911047b81f78050acd077f99b868c65f99306 /src | |
parent | m (diff) | |
download | sha3sum-37e7dd5963732cfd2391dd9102daa92652ed6e4b.tar.gz sha3sum-37e7dd5963732cfd2391dd9102daa92652ed6e4b.tar.bz2 sha3sum-37e7dd5963732cfd2391dd9102daa92652ed6e4b.tar.xz |
add constant for empty suffix
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/common.h | 3 | ||||
-rw-r--r-- | src/keccak-224sum.c | 2 | ||||
-rw-r--r-- | src/keccak-256sum.c | 2 | ||||
-rw-r--r-- | src/keccak-384sum.c | 2 | ||||
-rw-r--r-- | src/keccak-512sum.c | 2 | ||||
-rw-r--r-- | 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 <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); } |