util: add a SHA256 function

This commit is contained in:
moneromooo-monero 2017-02-20 20:46:50 +00:00
parent 4bf7849297
commit 216f062eb8
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
3 changed files with 37 additions and 1 deletions

View file

@ -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);
}