Skip to content
Permalink
Browse files

Merge pull request #753 from davehlong/development

Algo tweak to Soft-Shell to enable xmr-stak
  • Loading branch information...
brandonlehmann committed Mar 18, 2019
2 parents 2c18d00 + 579a013 commit 688087f60dc16b7f6ebfce41287b474cf56f67b5
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/crypto/hash.h
@@ -151,6 +151,7 @@ namespace Crypto {
}

uint32_t scratchpad = CN_SOFT_SHELL_MEMORY + (static_cast<uint32_t>(offset) * CN_SOFT_SHELL_PAD_MULTIPLIER);
scratchpad = (static_cast<uint64_t>(scratchpad / 128)) * 128;
uint32_t iterations = CN_SOFT_SHELL_ITER + (static_cast<uint32_t>(offset) * CN_SOFT_SHELL_ITER_MULTIPLIER);
uint32_t pagesize = scratchpad;

@@ -165,6 +166,7 @@ namespace Crypto {
}

uint32_t scratchpad = CN_SOFT_SHELL_MEMORY + (static_cast<uint32_t>(offset) * CN_SOFT_SHELL_PAD_MULTIPLIER);
scratchpad = (static_cast<uint64_t>(scratchpad / 128)) * 128;
uint32_t iterations = CN_SOFT_SHELL_ITER + (static_cast<uint32_t>(offset) * CN_SOFT_SHELL_ITER_MULTIPLIER);
uint32_t pagesize = scratchpad;

@@ -179,6 +181,7 @@ namespace Crypto {
}

uint32_t scratchpad = CN_SOFT_SHELL_MEMORY + (static_cast<uint32_t>(offset) * CN_SOFT_SHELL_PAD_MULTIPLIER);
scratchpad = (static_cast<uint64_t>(scratchpad / 128)) * 128;
uint32_t iterations = CN_SOFT_SHELL_ITER + (static_cast<uint32_t>(offset) * CN_SOFT_SHELL_ITER_MULTIPLIER);
uint32_t pagesize = scratchpad;

0 comments on commit 688087f

Please sign in to comment.
You can’t perform that action at this time.