pike.git / src / post_modules / Nettle / hash.cmod

version» Context lines:

pike.git/src/post_modules/Nettle/hash.cmod:668:   #ifdef SHA512_256_DIGEST_SIZE      #cmod_define PIKE_NAME SHA512_256   #cmod_define NETTLE_NAME sha512_256   #cmod_include "hash.H"   #cmod_undef PIKE_NAME   #cmod_undef NETTLE_NAME      #endif /* SHA512_256_DIGEST_SIZE */    - #ifdef HAVE_NETTLE_SHA3_H + /* NB: SHA3 in Nettle 3.2 and later does not interoperate +  * with earlier versions of Nettle. +  */ + #if defined(HAVE_NETTLE_SHA3_H) && defined(NETTLE_SHA3_FIPS202)      #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"
pike.git/src/post_modules/Nettle/hash.cmod:694:   #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 */ + #endif /* HAVE_NETTLE_SHA3_H && NETTLE_SHA3_FIPS202 */      #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