Skip to content

Commit

Permalink
Fixed undefined symbol: blake2b
Browse files Browse the repository at this point in the history
  • Loading branch information
MoneroOcean committed Dec 26, 2019
1 parent f77ed92 commit d8e4ccb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"multihashing.cc",
"c29s.cc",
"c29v.cc",
"c29/blake2b-ref.c",
"xmrig/crypto/cn/c_blake256.c",
"xmrig/crypto/cn/c_groestl.c",
"xmrig/crypto/cn/c_jh.c",
Expand Down
6 changes: 3 additions & 3 deletions multihashing.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

extern "C" {
#include "crypto/defyx/KangarooTwelve.h"
#include "c29/blake2.h"
#include "crypto/randomx/blake2/blake2.h"
#include "c29/portable_endian.h" // for htole32/64
#include "c29/int-util.h"
}
Expand Down Expand Up @@ -375,7 +375,7 @@ static void setsipkeys(const char *keybuf,siphash_keys *keys) {

static void c29_setheader(const char *header, const uint32_t headerlen, siphash_keys *keys) {
char hdrkey[32];
blake2b((void *)hdrkey, sizeof(hdrkey), (const void *)header, headerlen, 0, 0);
rx_blake2b((void *)hdrkey, sizeof(hdrkey), (const void *)header, headerlen, 0, 0);
setsipkeys(hdrkey,keys);
}

Expand Down Expand Up @@ -446,7 +446,7 @@ NAN_METHOD(c29_cycle_hash) {
}

unsigned char cyclehash[32];
blake2b((void *)cyclehash, sizeof(cyclehash), (uint8_t *)hashdata, sizeof(hashdata), 0, 0);
rx_blake2b((void *)cyclehash, sizeof(cyclehash), (uint8_t *)hashdata, sizeof(hashdata), 0, 0);

unsigned char rev_cyclehash[32];
for(int i = 0; i < 32; i++)
Expand Down

0 comments on commit d8e4ccb

Please sign in to comment.