pike.git/
src/
post_modules/
Nettle/
hash.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2014-12-04
2014-12-04 19:24:36 by Martin Nilsson <nilsson@opera.com>
0e29b6c88ef1254beac5c8aed86b18bd6397320d (
32
lines) (+
32
/-
0
)
[
Show
|
Annotate
]
Branch:
bill/master_archive_support
Added SHA-3 (224, 256. 384, 512) and cleaned up the testsuite a bit.
28:
#include <nettle/md2.h> #endif #include <nettle/sha.h>
+
#ifdef HAVE_NETTLE_SHA3_H
+
#include <nettle/sha3.h>
+
#endif
#include <nettle/nettle-meta.h> #include <stdio.h>
650:
#endif /* SHA512_DIGEST_SIZE */
+
#ifdef HAVE_NETTLE_SHA3_H
+
+
#cmod_define PIKE_NAME SHA3_224
+
#cmod_define NETTLE_NAME sha3_224
+
#cmod_include "hash.H"
+
#cmod_undef PIKE_NAME
+
#cmod_undef NETTLE_NAME
+
+
#cmod_define PIKE_NAME SHA3_256
+
#cmod_define NETTLE_NAME sha3_256
+
#cmod_include "hash.H"
+
#cmod_undef PIKE_NAME
+
#cmod_undef NETTLE_NAME
+
+
#cmod_define PIKE_NAME SHA3_384
+
#cmod_define NETTLE_NAME sha3_384
+
#cmod_include "hash.H"
+
#cmod_undef PIKE_NAME
+
#cmod_undef NETTLE_NAME
+
+
#cmod_define PIKE_NAME SHA3_512
+
#cmod_define NETTLE_NAME sha3_512
+
#cmod_include "hash.H"
+
#cmod_undef PIKE_NAME
+
#cmod_undef NETTLE_NAME
+
+
#endif /* HAVE_NETTLE_SHA3_H */
+
/*! @endmodule Nettle */ void