diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-02-24 12:00:51 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-02-24 12:00:51 +0200 |
commit | ed6f2e8323b4313e97ad6a43aa13abaf7d099296 (patch) | |
tree | 5977dfa9a688be93d2059e28fa2d552359f1041e /src/common/util.h | |
parent | Merge pull request #1784 (diff) | |
parent | core: protect precomputed block hashes with SHA256 (diff) | |
download | monero-ed6f2e8323b4313e97ad6a43aa13abaf7d099296.tar.xz |
Merge pull request #1785
583a7b5c core: protect precomputed block hashes with SHA256 (moneromooo-monero)
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |