mirror of
https://github.com/monero-project/monero.git
synced 2025-08-08 22:22:33 -04:00
core: protect precomputed block hashes with SHA256
This commit is contained in:
parent
d666339853
commit
583a7b5c74
3 changed files with 41 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue