mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-09 13:34:18 +00:00
Update sgminer.c & scrypt.c
Default opt_nfactor was 11 instead of 10, my typo.. :) Sorry. scrypt_1024_1_1_256_sp renamed to scrypt_n_1_1_256_sp
This commit is contained in:
parent
73bb1504e9
commit
2b9a588e25
4
scrypt.c
4
scrypt.c
@ -356,7 +356,7 @@ salsa20_8(uint32_t B[16], const uint32_t Bx[16])
|
||||
/* cpu and memory intensive function to transform a 80 byte buffer into a 32 byte output
|
||||
scratchpad size needs to be at least 63 + (128 * r * p) + (256 * r + 64) + (128 * r * N) bytes
|
||||
*/
|
||||
static void scrypt_1024_1_1_256_sp(const uint32_t* input, char* scratchpad, uint32_t *ostate, const cl_uint n)
|
||||
static void scrypt_n_1_1_256_sp(const uint32_t* input, char* scratchpad, uint32_t *ostate, const cl_uint n)
|
||||
{
|
||||
uint32_t * V;
|
||||
uint32_t X[32];
|
||||
@ -417,7 +417,7 @@ void scrypt_regenhash(struct work *work)
|
||||
data[19] = htobe32(*nonce);
|
||||
//scratchbuf = alloca(SCRATCHBUF_SIZE);
|
||||
scratchbuf = (char *)alloca((1 << opt_nfactor) * 128 + 512);
|
||||
scrypt_1024_1_1_256_sp(data, scratchbuf, ohash, (1 << opt_nfactor));
|
||||
scrypt_n_1_1_256_sp(data, scratchbuf, ohash, (1 << opt_nfactor));
|
||||
flip32(ohash, ohash);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user