version 1.29, 2022/11/11 17:07:39 |
version 1.30, 2023/02/23 14:55:54 |
|
|
} |
} |
d = Time_F(STOP); |
d = Time_F(STOP); |
BIO_printf(bio_err, mr ? "+R1:%ld:%d:%.2f\n" |
BIO_printf(bio_err, mr ? "+R1:%ld:%d:%.2f\n" |
: "%ld %d bit private RSA's in %.2fs\n", |
: "%ld %d bit private RSA in %.2fs\n", |
count, rsa_bits[j], d); |
count, rsa_bits[j], d); |
rsa_results[j][0] = d / (double) count; |
rsa_results[j][0] = d / (double) count; |
rsa_count = count; |
rsa_count = count; |
|
|
} |
} |
d = Time_F(STOP); |
d = Time_F(STOP); |
BIO_printf(bio_err, mr ? "+R2:%ld:%d:%.2f\n" |
BIO_printf(bio_err, mr ? "+R2:%ld:%d:%.2f\n" |
: "%ld %d bit public RSA's in %.2fs\n", |
: "%ld %d bit public RSA in %.2fs\n", |
count, rsa_bits[j], d); |
count, rsa_bits[j], d); |
rsa_results[j][1] = d / (double) count; |
rsa_results[j][1] = d / (double) count; |
} |
} |
|
|
int bits, int tm) |
int bits, int tm) |
{ |
{ |
BIO_printf(bio_err, mr ? "+DTP:%d:%s:%s:%d\n" |
BIO_printf(bio_err, mr ? "+DTP:%d:%s:%s:%d\n" |
: "Doing %d bit %s %s's for %ds: ", bits, str, str2, tm); |
: "Doing %d bit %s %s for %ds: ", bits, str, str2, tm); |
(void) BIO_flush(bio_err); |
(void) BIO_flush(bio_err); |
alarm(tm); |
alarm(tm); |
} |
} |
|
|
print_result(int alg, int run_no, int count, double time_used) |
print_result(int alg, int run_no, int count, double time_used) |
{ |
{ |
BIO_printf(bio_err, mr ? "+R:%d:%s:%f\n" |
BIO_printf(bio_err, mr ? "+R:%d:%s:%f\n" |
: "%d %s's in %.2fs\n", count, names[alg], time_used); |
: "%d %s in %.2fs\n", count, names[alg], time_used); |
results[alg][run_no] = ((double) count) / time_used * lengths[run_no]; |
results[alg][run_no] = ((double) count) / time_used * lengths[run_no]; |
} |
} |
|
|