mirror of
https://github.com/monero-project/monero.git
synced 2025-12-11 17:41:28 +09:00
Merge pull request #3403
843f65cb tests/hash: correctly reference crypto HASH_SIZE for less confusion (AnythingTechPro)
This commit is contained in:
commit
0683f3190d
@ -49,7 +49,7 @@ extern "C" {
|
|||||||
if ((length & 31) != 0) {
|
if ((length & 31) != 0) {
|
||||||
throw ios_base::failure("Invalid input length for tree_hash");
|
throw ios_base::failure("Invalid input length for tree_hash");
|
||||||
}
|
}
|
||||||
tree_hash((const char (*)[32]) data, length >> 5, hash);
|
tree_hash((const char (*)[crypto::HASH_SIZE]) data, length >> 5, hash);
|
||||||
}
|
}
|
||||||
static void cn_slow_hash_0(const void *data, size_t length, char *hash) {
|
static void cn_slow_hash_0(const void *data, size_t length, char *hash) {
|
||||||
return cn_slow_hash(data, length, hash, 0/*variant*/, 0/*prehashed*/);
|
return cn_slow_hash(data, length, hash, 0/*variant*/, 0/*prehashed*/);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user