aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2018-04-24 13:18:33 +1200
committerDavid Phillips <david@sighup.nz>2018-04-24 17:11:53 +1200
commitebf9f1387ef6c57314bfc0a65fd5cae40f2a8d08 (patch)
tree663654678763a0f702ca6d2b1a69ad1a4155a0b8
parent8546bbc5abf0aafdaa9a2f5926b53d7c738ff44c (diff)
downloadsand-leek-ebf9f1387ef6c57314bfc0a65fd5cae40f2a8d08.tar.xz
Remove unnecessary variable and comments
-rw-r--r--sand-leek-cl.c14
1 files 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");