From ebf9f1387ef6c57314bfc0a65fd5cae40f2a8d08 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Tue, 24 Apr 2018 13:18:33 +1200 Subject: Remove unnecessary variable and comments --- sand-leek-cl.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/sand-leek-cl.c b/sand-leek-cl.c index 105fa45..42ebba5 100644 --- a/sand-leek-cl.c +++ b/sand-leek-cl.c @@ -185,7 +185,6 @@ int main(int argc, char **argv) } fprintf(stderr, "Done.\n"); - /*FIXME*/uint32_t eBE = 0; /* FIXME */cl_int *buffer = malloc(4*65536); /* FIXME */unsigned long key_number = 1; @@ -290,14 +289,14 @@ int main(int argc, char **argv) byte_e[3] = smalls & 0xFF; if (truffle_valid(search_raw, raw_len, bitmask, sha_c, byte_e)) { - eBE = byte_e[0] << 24 | byte_e[1] << 16 | byte_e[2] << 8 | byte_e[3]; + e = byte_e[0] << 24 | byte_e[1] << 16 | byte_e[2] << 8 | byte_e[3]; } else { fprintf(stderr, "GPU doesn't agree with CPU: bug or hardware fault?\n"); } break; } } - } while (eBE == 0); + } while (e == 0); fprintf(stderr, "Done.\n"); fprintf(stderr, "Destroying CL trampoline... "); @@ -306,15 +305,6 @@ int main(int argc, char **argv) free(buffer); - - - - -// e = run(preferred_platform, search_raw, raw_len, search_len, &sha_c); - e = eBE; /* FIXME */ - -//fprintf(stderr, "exponent is %lx\n", e); - #if OPENSSL_VERSION_NUMBER >= 0x10100000L if (BN_set_word(bignum_e, e) != 1) { fprintf(stderr, "BN_set_word failed\n"); -- cgit v1.1