Skip to content

Commit

Permalink
brush up
Browse files Browse the repository at this point in the history
  • Loading branch information
ROZ-MOFUMOFU-ME committed May 24, 2024
1 parent c2d1268 commit 82e3d7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ endif

quiet_cmd_regen_makefile = ACTION Regenerating $@
cmd_regen_makefile = cd $(srcdir); /usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py -fmake --ignore-environment "-Dlibrary=shared_library" "-Dvisibility=default" "-Dnode_root_dir=/home/aoi/.cache/node-gyp/16.20.2" "-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp" "-Dnode_lib_file=/home/aoi/.cache/node-gyp/16.20.2/<(target_arch)/node.lib" "-Dmodule_root_dir=/home/aoi/node-multi-hashing" "-Dnode_engine=v8" "--depth=." "-Goutput_dir=." "--generator-output=build" -I/home/aoi/node-multi-hashing/build/config.gypi -I/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi -I/home/aoi/.cache/node-gyp/16.20.2/include/node/common.gypi "--toplevel-dir=." binding.gyp
Makefile: $(srcdir)/build/config.gypi $(srcdir)/../../../usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi $(srcdir)/../.cache/node-gyp/16.20.2/include/node/common.gypi $(srcdir)/binding.gyp
Makefile: $(srcdir)/binding.gyp $(srcdir)/build/config.gypi $(srcdir)/../.cache/node-gyp/16.20.2/include/node/common.gypi $(srcdir)/../../../usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi
$(call do_cmd,regen_makefile)

# "all" is a concatenation of the "all" targets from all the included
Expand Down
8 changes: 4 additions & 4 deletions src/crypto/yespower/yespower-opt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,7 @@ int yespower(yespower_local_t *local,
ctx.S0 = S;
ctx.S1 = S + Swidth_to_Sbytes1(Swidth);

SHA256_Buf(src, srclen, sha256);
sha256_buf(src, srclen, sha256);

if (version == YESPOWER_0_5) {
PBKDF2_SHA256(sha256, sizeof(sha256), src, srclen, 1,
Expand All @@ -1084,9 +1084,9 @@ int yespower(yespower_local_t *local,
(uint8_t *)dst, sizeof(*dst));

if (pers) {
HMAC_SHA256_Buf(dst, sizeof(*dst), pers, perslen,
hmac_sha256_buf(dst, sizeof(*dst), pers, perslen,
sha256);
SHA256_Buf(sha256, sizeof(sha256), (uint8_t *)dst);
sha256_buf(sha256, sizeof(sha256), (uint8_t *)dst);
}
} else {
ctx.S2 = S + 2 * Swidth_to_Sbytes1(Swidth);
Expand All @@ -1102,7 +1102,7 @@ int yespower(yespower_local_t *local,
PBKDF2_SHA256(sha256, sizeof(sha256), src, srclen, 1, B, 128);
memcpy(sha256, B, sizeof(sha256));
smix_1_0(B, r, N, V, XY, &ctx);
HMAC_SHA256_Buf(B + B_size - 64, 64,
hmac_sha256_buf(B + B_size - 64, 64,
sha256, sizeof(sha256), (uint8_t *)dst);
}

Expand Down

0 comments on commit 82e3d7f

Please sign in to comment.