Skip to content

Commit

Permalink
Solved bug with invalid publickeys and 0 publickeys
Browse files Browse the repository at this point in the history
  • Loading branch information
albertobsd committed Mar 11, 2021
1 parent eef5ec0 commit a0a60ed
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#Version 0.1.20210311 K*BSGS
- Solved some bug when the publickeys in the input file was invalid but the program keeps running with 0 publickeys
- Now publickeys can be compressed, not only uncompressed

#Version 0.1.20210306 K*BSGS
- Added K factor for BSGS
- Added bPfile.c to generate a precalculated file
Expand Down
10 changes: 8 additions & 2 deletions keyhunt.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct tothread {
char *rpt; //rng per thread
};

const char *version = "0.1.20210306 K*BSGS";
const char *version = "0.1.20210311 K*BSGS";
const char *EC_constant_N = "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141";
const char *EC_constant_P = "fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f";
const char *EC_constant_Gx = "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798";
Expand Down Expand Up @@ -760,7 +760,13 @@ int main(int argc, char **argv) {
}
fclose(fd);
bsgs_point_number = N;
printf("[+] Added %u points from file\n",bsgs_point_number);
if(N > 0) {
printf("[+] Added %u points from file\n",bsgs_point_number);
}
else {
printf("[E] The file don't have any valid publickeys\n");
exit(0);
}
mpz_init(BSGS_N);
mpz_init(BSGS_M);
mpz_init(point_temp.x);
Expand Down

0 comments on commit a0a60ed

Please sign in to comment.