update slow_hash signature (#542)

This commit is contained in:
m2049r 2019-03-02 09:07:27 +01:00 committed by GitHub
parent 25c8ec1229
commit 93a7be0452
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -60,14 +60,14 @@ enum {
HASH_DATA_AREA = 136 HASH_DATA_AREA = 136
}; };
void cn_slow_hash(const void *data, size_t length, char *hash, int variant, int prehashed); void cn_slow_hash(const void *data, size_t length, char *hash, int variant, int prehashed, uint64_t height);
inline void slow_hash(const void *data, const size_t length, char *hash) { inline void slow_hash(const void *data, const size_t length, char *hash) {
cn_slow_hash(data, length, hash, 0 /* variant */, 0/*prehashed*/); cn_slow_hash(data, length, hash, 0 /*variant*/, 0 /*prehashed*/, 0 /*height*/);
} }
inline void slow_hash_broken(const void *data, char *hash, int variant) { inline void slow_hash_broken(const void *data, char *hash, int variant) {
cn_slow_hash(data, 200 /*sizeof(union hash_state)*/, hash, variant, 1 /*prehashed*/); cn_slow_hash(data, 200 /*sizeof(union hash_state)*/, hash, variant, 1 /*prehashed*/, 0 /*height*/);
} }
#ifdef __cplusplus #ifdef __cplusplus