pike.git
/
src
/
post_modules
/
Nettle
/
hash.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/post_modules/Nettle/hash.cmod:21:
DECLARATIONS #include "nettle.h" #include <nettle/md5.h> #ifdef HAVE_NETTLE_MD4_INIT #include <nettle/md4.h> #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> #include <stdarg.h> #include "fdlib.h" #if 0 static void werror(const char *format, ...) {
pike.git/src/post_modules/Nettle/hash.cmod:643:
#ifdef SHA512_DIGEST_SIZE #cmod_define PIKE_NAME SHA512 #cmod_define NETTLE_NAME sha512 #cmod_include "hash.H" #cmod_undef PIKE_NAME #cmod_undef NETTLE_NAME #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 hash_init(void) { werror("Nettle, hash init\n"); INIT; } void hash_exit(void) { werror("Nettle, hash exit\n"); EXIT; } #endif /* HAVE_LIBNETTLE */