Branch: Tag:

2016-01-29

2016-01-29 10:19:51 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Nettle: Inhibit build of SHA3 submodule with old Nettle.

Old (prior to 3.2) Nettle had a broken implementation of SHA3.

675:      #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
701:   #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