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:48 by Martin Nilsson <nilsson@opera.com>
ae4500ffbe5ffcecfba9dcfb5246a7b26b81fd66 (
27
lines) (+
27
/-
0
)
[
Show
|
Annotate
]
Branch:
bill/master_archive_support
Added hash functions GOST94 and RIPEMD160. All Nettle hashes are now accounted for.
31:
#ifdef HAVE_NETTLE_SHA3_H #include <nettle/sha3.h> #endif
+
#ifdef HAVE_NETTLE_RIPEMD160_H
+
#include <nettle/ripemd160.h>
+
#endif
+
#ifdef HAVE_NETTLE_GOSTHASH94_H
+
#include <nettle/gosthash94.h>
+
#endif
#include <nettle/nettle-meta.h> #include <stdio.h>
691:
#endif /* HAVE_NETTLE_SHA3_H */
+
#ifdef HAVE_NETTLE_RIPEMD160_H
+
+
#cmod_define PIKE_NAME RIPEMD160
+
#cmod_define NETTLE_NAME ripemd160
+
#cmod_include "hash.H"
+
#cmod_undef PIKE_NAME
+
#cmod_undef NETTLE_NAME
+
+
#endif
+
+
#ifdef HAVE_NETTLE_GOSTHASH94_H
+
+
#cmod_define PIKE_NAME GOST94
+
#cmod_define NETTLE_NAME gosthash94
+
#cmod_include "hash.H"
+
#cmod_undef PIKE_NAME
+
#cmod_undef NETTLE_NAME
+
+
#endif
+
/*! @endmodule Nettle */ void