Updated hpfs hash verification with file mode checks. (#257)

* Added file mode to hpfs responses.

* Parse file mode on hpfs response read.

* Apply file/dir mode.

* Fixed mode apply logic.

* Fixed code review comments.

* Additional fix.
This commit is contained in:
Ravin Perera
2021-02-24 11:13:28 +05:30
committed by GitHub
parent 363116fc2a
commit 5b56d9c1b3
13 changed files with 201 additions and 80 deletions

View File

@@ -115,7 +115,7 @@ namespace crypto
* @param data_length hash data length.
* @return The blake3 hash of the pointed buffer.
*/
const std::string get_hash(const unsigned char *data, size_t data_length)
const std::string get_hash(const void *data, const size_t data_length)
{
std::string hash;
hash.resize(BLAKE3_OUT_LEN);