From 583a7b5c74239aa9e645ea5b604e4504b323271f Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Thu, 23 Feb 2017 23:18:10 +0000 Subject: core: protect precomputed block hashes with SHA256 --- src/common/util.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/common/util.h') diff --git a/src/common/util.h b/src/common/util.h index 1d4b3a153..4291d7e18 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -185,5 +185,6 @@ namespace tools bool is_local_address(const std::string &address); int vercmp(const char *v0, const char *v1); // returns < 0, 0, > 0, similar to strcmp, but more human friendly than lexical - does not attempt to validate + bool sha256sum(const uint8_t *data, size_t len, crypto::hash &hash); bool sha256sum(const std::string &filename, crypto::hash &hash); } -- cgit v1.2.3