diff --git a/validat8.cpp b/validat8.cpp index ab95ed76..179a6029 100644 --- a/validat8.cpp +++ b/validat8.cpp @@ -148,13 +148,20 @@ bool ValidateECP_Encrypt() } // https://github.com/weidai11/cryptopp/issues/856 -class NULLHash : public CryptoPP::IteratedHashWithStaticTransform - +// Not to be confused with NullHash in trunhash.h. +class NULL_Hash : public CryptoPP::IteratedHashWithStaticTransform + { public: - static void InitState(HashWordType *state) {} - static void Transform(CryptoPP::word32 *digest, const CryptoPP::word32 *data) {} - static const char *StaticAlgorithmName() {return "NULL HASH";} + static void InitState(HashWordType *state) { + CRYPTOPP_UNUSED(state); + } + static void Transform(CryptoPP::word32 *digest, const CryptoPP::word32 *data) { + CRYPTOPP_UNUSED(digest); CRYPTOPP_UNUSED(data); + } + static const char *StaticAlgorithmName() { + return "NULL_Hash"; + } }; // https://github.com/weidai11/cryptopp/issues/856 @@ -164,7 +171,7 @@ struct ECIES_NULLDigest DL_Keys_EC, DL_KeyAgreementAlgorithm_DH, DL_KeyDerivationAlgorithm_P1363 >, - DL_EncryptionAlgorithm_Xor, DHAES_MODE, LABEL_OCTETS>, + DL_EncryptionAlgorithm_Xor, DHAES_MODE, LABEL_OCTETS>, ECIES > { // TODO: fix this after name is standardized