Janos Follath
f301d23ceb
Bignum: Improve primality test for FIPS primes
...
The FIPS 186-4 RSA key generation prescribes lower failure probability
in primality testing and this makes key generation slower. We enable the
caller to decide between compliance/security and performance.
This python script calculates the base two logarithm of the formulas in
HAC Fact 4.48 and was used to determine the breakpoints and number of
rounds:
def mrpkt_log_2(k, t):
if t <= k/9.0:
return 3*math.log(k,2)/2+t-math.log(t,2)/2+4-2*math.sqrt(t*k)
elif t <= k/4.0:
c1 = math.log(7.0*k/20,2)-5*t
c2 = math.log(1/7.0,2)+15*math.log(k,2)/4.0-k/2.0-2*t
c3 = math.log(12*k,2)-k/4.0-3*t
return max(c1, c2, c3)
else:
return math.log(1/7.0)+15*math.log(k,2)/4.0-k/2.0-2*t
2018-10-09 16:33:27 +01:00
..
2015-06-25 10:59:56 +02:00
2018-06-17 17:34:55 +01:00
2018-04-05 15:37:38 +02:00
2018-04-17 10:00:21 -05:00
2018-08-13 13:49:52 +03:00
2018-04-17 10:00:21 -05:00
2018-05-25 14:54:14 +01:00
2017-02-15 23:31:07 +02:00
2018-10-09 16:33:27 +01:00
2018-04-17 10:00:21 -05:00
2018-04-17 10:00:21 -05:00
2018-07-30 11:29:26 +03:00
2017-07-27 21:44:33 +01:00
2018-06-07 11:54:17 +02:00
2018-06-18 10:30:30 +02:00
2018-06-19 11:32:48 +02:00
2018-07-01 10:20:43 +03:00
2018-06-27 10:51:47 +01:00
2018-09-06 19:10:26 +01:00
2018-04-17 10:00:21 -05:00
2017-09-06 17:51:14 +03:00
2018-04-17 10:00:21 -05:00
2018-04-17 10:00:21 -05:00
2017-10-10 19:04:27 +03:00
2018-03-30 18:43:16 +02:00
2018-05-15 09:21:57 +01:00
2018-04-04 09:18:27 +02:00
2018-08-20 10:39:27 +03:00
2018-07-24 17:20:17 +01:00
2018-04-17 10:00:21 -05:00
2018-08-17 16:52:08 +01:00
2018-04-17 10:00:21 -05:00
2018-04-17 10:00:21 -05:00
2018-07-23 10:34:47 -07:00
2018-04-17 10:00:21 -05:00
2018-08-31 15:59:10 +01:00
2018-04-17 10:00:21 -05:00
2018-04-17 10:00:21 -05:00
2018-07-05 10:47:00 +02:00
2018-01-22 11:54:42 +01:00
2018-04-17 10:00:21 -05:00
2018-06-12 16:56:04 +01:00
2018-07-24 17:20:17 +01:00
2018-07-24 16:43:20 +01:00
2018-02-08 17:18:15 +08:00
2015-09-04 14:21:07 +02:00
2018-04-17 10:00:21 -05:00
2018-04-17 10:00:21 -05:00
2018-04-17 10:00:21 -05:00
2018-05-25 14:54:14 +01:00
2015-09-04 14:21:07 +02:00
2018-04-17 10:00:21 -05:00
2018-07-11 15:16:53 +02:00
2017-08-23 16:17:27 +01:00
2018-09-06 12:09:56 +01:00
2018-06-13 09:17:59 +01:00
2018-06-07 11:54:17 +02:00
2018-04-17 10:00:21 -05:00
2018-01-03 09:27:40 +00:00
2018-05-04 14:39:24 +01:00
2018-07-05 10:47:00 +02:00
2018-07-05 10:47:00 +02:00
2018-07-05 10:47:00 +02:00
2017-10-29 17:53:52 +02:00
2018-08-10 10:59:53 +01:00
2018-08-30 00:57:28 +01:00
2018-04-17 10:00:21 -05:00
2018-08-28 10:13:29 +01:00
2018-04-17 10:00:21 -05:00
2018-08-30 01:11:35 +01:00
2018-09-06 12:09:56 +01:00
2018-04-11 20:27:32 -04:00
2018-07-24 16:43:20 +01:00
2016-11-04 23:05:56 +01:00
2015-10-21 12:50:45 +02:00
2018-04-17 10:00:21 -05:00
2018-08-28 15:26:11 +01:00
2018-06-28 12:09:15 +01:00
2018-09-05 15:06:19 +01:00
2018-04-17 10:00:21 -05:00
2018-04-17 10:00:21 -05:00
2018-04-17 10:00:21 -05:00