aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2019-02-11 19:05:34 +0100
committerMattias Andrée <maandree@kth.se>2019-02-11 19:05:34 +0100
commit248d6a2e40fa1855f3b2d467acdc499ae1af5091 (patch)
treeca81ce2c8a884af0465c16f1e6e61244af234b3b /common.h
parentFix typo (diff)
downloadsha3sum-248d6a2e40fa1855f3b2d467acdc499ae1af5091.tar.gz
sha3sum-248d6a2e40fa1855f3b2d467acdc499ae1af5091.tar.bz2
sha3sum-248d6a2e40fa1855f3b2d467acdc499ae1af5091.tar.xz
Update for libkeccak 1.21.1.5
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'common.h')
-rw-r--r--common.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/common.h b/common.h
index d503811..f116035 100644
--- a/common.h
+++ b/common.h
@@ -4,19 +4,19 @@
#define COMMON_MAIN(CONFIGURATION, SUFFIX)\
int main(int argc, char *argv[]) {\
- libkeccak_generalised_spec_t spec;\
+ struct libkeccak_generalised_spec spec;\
libkeccak_generalised_spec_initialise(&spec);\
CONFIGURATION;\
return run(argc, argv, &spec, SUFFIX);\
}
#define KECCAK_MAIN(N)\
- COMMON_MAIN(libkeccak_spec_sha3((libkeccak_spec_t *)&spec, N), "")
+ COMMON_MAIN(libkeccak_spec_sha3((struct libkeccak_spec *)&spec, N), "")
#define SHA3_MAIN(N)\
- COMMON_MAIN(libkeccak_spec_sha3((libkeccak_spec_t *)&spec, N), LIBKECCAK_SHA3_SUFFIX)
+ COMMON_MAIN(libkeccak_spec_sha3((struct libkeccak_spec *)&spec, N), LIBKECCAK_SHA3_SUFFIX)
#define RAWSHAKE_MAIN(N)\
- COMMON_MAIN(libkeccak_spec_rawshake((libkeccak_spec_t *)&spec, N, N), LIBKECCAK_RAWSHAKE_SUFFIX)
+ COMMON_MAIN(libkeccak_spec_rawshake((struct libkeccak_spec *)&spec, N, N), LIBKECCAK_RAWSHAKE_SUFFIX)
#define SHAKE_MAIN(N)\
- COMMON_MAIN(libkeccak_spec_shake((libkeccak_spec_t *)&spec, N, N), LIBKECCAK_SHAKE_SUFFIX)
+ COMMON_MAIN(libkeccak_spec_shake((struct libkeccak_spec *)&spec, N, N), LIBKECCAK_SHAKE_SUFFIX)
/**
@@ -49,4 +49,4 @@ enum representation {
* @param suffix Message suffix
* @return An appropriate exit value
*/
-int run(int argc, char *argv[], libkeccak_generalised_spec_t *restrict gspec, const char *restrict suffix);
+int run(int argc, char *argv[], struct libkeccak_generalised_spec *restrict gspec, const char *restrict suffix);