From 6119b4dbcc9cc787c3ef7a12883efb1611d2d965 Mon Sep 17 00:00:00 2001 From: blinkhash Date: Mon, 6 Jun 2022 20:04:42 -0400 Subject: [PATCH] Fix small issues with build --- algorithms/main/common/cryptonote/cryptonight.c | 2 +- algorithms/main/common/cryptonote/cryptonight_dark.c | 2 +- algorithms/main/common/cryptonote/cryptonight_dark_lite.c | 2 +- algorithms/main/common/cryptonote/cryptonight_fast.c | 2 +- algorithms/main/common/cryptonote/cryptonight_lite.c | 2 +- algorithms/main/common/cryptonote/cryptonight_soft_shell.c | 4 ++-- algorithms/main/common/cryptonote/cryptonight_turtle.c | 2 +- algorithms/main/common/cryptonote/cryptonight_turtle_lite.c | 2 +- algorithms/main/verthash/verthash.c | 1 + package-lock.json | 2 +- package.json | 2 +- 11 files changed, 12 insertions(+), 11 deletions(-) diff --git a/algorithms/main/common/cryptonote/cryptonight.c b/algorithms/main/common/cryptonote/cryptonight.c index 604ad42..6734e4e 100644 --- a/algorithms/main/common/cryptonote/cryptonight.c +++ b/algorithms/main/common/cryptonote/cryptonight.c @@ -49,7 +49,7 @@ if (variant == 1 && len < 43) \ { \ fprintf(stderr, "Cryptonight variant 1 needs at least 43 bytes of data"); \ - _exit(1); \ + exit(1); \ } \ const uint64_t tweak1_2 = (variant == 1) ? *(const uint64_t*)(((const uint8_t*)input)+35) ^ ctx->state.hs.w[24] : 0 diff --git a/algorithms/main/common/cryptonote/cryptonight_dark.c b/algorithms/main/common/cryptonote/cryptonight_dark.c index 39bd412..0fac31a 100644 --- a/algorithms/main/common/cryptonote/cryptonight_dark.c +++ b/algorithms/main/common/cryptonote/cryptonight_dark.c @@ -49,7 +49,7 @@ if (variant == 1 && len < 43) \ { \ fprintf(stderr, "Cryptonight variant 1 needs at least 43 bytes of data"); \ - _exit(1); \ + exit(1); \ } \ const uint64_t tweak1_2 = (variant == 1) ? *(const uint64_t*)(((const uint8_t*)input)+35) ^ ctx->state.hs.w[24] : 0 diff --git a/algorithms/main/common/cryptonote/cryptonight_dark_lite.c b/algorithms/main/common/cryptonote/cryptonight_dark_lite.c index 8474bf7..007f381 100644 --- a/algorithms/main/common/cryptonote/cryptonight_dark_lite.c +++ b/algorithms/main/common/cryptonote/cryptonight_dark_lite.c @@ -49,7 +49,7 @@ if (variant == 1 && len < 43) \ { \ fprintf(stderr, "Cryptonight variant 1 needs at least 43 bytes of data"); \ - _exit(1); \ + exit(1); \ } \ const uint64_t tweak1_2 = (variant == 1) ? *(const uint64_t*)(((const uint8_t*)input)+35) ^ ctx->state.hs.w[24] : 0 diff --git a/algorithms/main/common/cryptonote/cryptonight_fast.c b/algorithms/main/common/cryptonote/cryptonight_fast.c index f940fad..801179e 100644 --- a/algorithms/main/common/cryptonote/cryptonight_fast.c +++ b/algorithms/main/common/cryptonote/cryptonight_fast.c @@ -49,7 +49,7 @@ if (variant == 1 && len < 43) \ { \ fprintf(stderr, "Cryptonight variant 1 needs at least 43 bytes of data"); \ - _exit(1); \ + exit(1); \ } \ const uint64_t tweak1_2 = (variant == 1) ? *(const uint64_t*)(((const uint8_t*)input)+35) ^ ctx->state.hs.w[24] : 0 diff --git a/algorithms/main/common/cryptonote/cryptonight_lite.c b/algorithms/main/common/cryptonote/cryptonight_lite.c index cf4a536..b914e5f 100644 --- a/algorithms/main/common/cryptonote/cryptonight_lite.c +++ b/algorithms/main/common/cryptonote/cryptonight_lite.c @@ -49,7 +49,7 @@ if (variant == 1 && len < 43) \ { \ fprintf(stderr, "Cryptonight variant 1 needs at least 43 bytes of data"); \ - _exit(1); \ + exit(1); \ } \ const uint64_t tweak1_2 = (variant == 1) ? *(const uint64_t*)(((const uint8_t*)input)+35) ^ ctx->state.hs.w[24] : 0 diff --git a/algorithms/main/common/cryptonote/cryptonight_soft_shell.c b/algorithms/main/common/cryptonote/cryptonight_soft_shell.c index 5ed8fcf..8d09f50 100644 --- a/algorithms/main/common/cryptonote/cryptonight_soft_shell.c +++ b/algorithms/main/common/cryptonote/cryptonight_soft_shell.c @@ -45,7 +45,7 @@ if (variant == 1 && len < 43) \ { \ fprintf(stderr, "Cryptonight variant 1 needs at least 43 bytes of data"); \ - _exit(1); \ + exit(1); \ } \ const uint64_t tweak1_2 = (variant == 1) ? *(const uint64_t*)(((const uint8_t*)input)+35) ^ state.hs.w[24] : 0 @@ -196,7 +196,7 @@ void cryptonight_soft_shell_hash(const char* input, char* output, uint32_t len, uint8_t c[AES_BLOCK_SIZE]; uint8_t aes_key[AES_KEY_SIZE]; oaes_ctx* aes_ctx; - + #if defined(_MSC_VER) uint8_t *long_state = (uint8_t *)_malloca(scratchpad); #else diff --git a/algorithms/main/common/cryptonote/cryptonight_turtle.c b/algorithms/main/common/cryptonote/cryptonight_turtle.c index 75666d2..0bb2f5b 100644 --- a/algorithms/main/common/cryptonote/cryptonight_turtle.c +++ b/algorithms/main/common/cryptonote/cryptonight_turtle.c @@ -49,7 +49,7 @@ if (variant == 1 && len < 43) \ { \ fprintf(stderr, "Cryptonight variant 1 needs at least 43 bytes of data"); \ - _exit(1); \ + exit(1); \ } \ const uint64_t tweak1_2 = (variant == 1) ? *(const uint64_t*)(((const uint8_t*)input)+35) ^ ctx->state.hs.w[24] : 0 diff --git a/algorithms/main/common/cryptonote/cryptonight_turtle_lite.c b/algorithms/main/common/cryptonote/cryptonight_turtle_lite.c index 090b1e2..e28ac75 100644 --- a/algorithms/main/common/cryptonote/cryptonight_turtle_lite.c +++ b/algorithms/main/common/cryptonote/cryptonight_turtle_lite.c @@ -49,7 +49,7 @@ if (variant == 1 && len < 43) \ { \ fprintf(stderr, "Cryptonight variant 1 needs at least 43 bytes of data"); \ - _exit(1); \ + exit(1); \ } \ const uint64_t tweak1_2 = (variant == 1) ? *(const uint64_t*)(((const uint8_t*)input)+35) ^ ctx->state.hs.w[24] : 0 diff --git a/algorithms/main/verthash/verthash.c b/algorithms/main/verthash/verthash.c index 36708bc..6eb225e 100644 --- a/algorithms/main/verthash/verthash.c +++ b/algorithms/main/verthash/verthash.c @@ -4,6 +4,7 @@ #include #include +#include "verthash.h" #include "../common/sha3/sha3.h" #ifdef _MSC_VER diff --git a/package-lock.json b/package-lock.json index 16c6f74..e311ed4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "foundation-multi-hashing", - "version": "0.1.2", + "version": "0.1.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 521fd69..ccbece1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "foundation-multi-hashing", - "version": "0.1.2", + "version": "0.1.3", "main": "./index.js", "keywords": [ "scrypt",