diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-02-20 20:46:50 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-02-20 22:58:33 +0000 |
| commit | 216f062eb875eb0769d63c65ed0f5c8de51a9590 (patch) | |
| tree | 514e2bae17a6f8ad056914f26e950fb0df9e662c /src/common/util.h | |
| parent | 4bf7849297b618502a9c55da4fb03825d6db01af (diff) | |
| download | monzero-core-216f062eb875eb0769d63c65ed0f5c8de51a9590.tar.gz monzero-core-216f062eb875eb0769d63c65ed0f5c8de51a9590.tar.xz monzero-core-216f062eb875eb0769d63c65ed0f5c8de51a9590.zip | |
util: add a SHA256 function
Diffstat (limited to 'src/common/util.h')
| -rw-r--r-- | src/common/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h index bef4b6202..8ab469129 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -184,4 +184,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 std::string &filename, crypto::hash &hash); } |
