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
..
2018-07-24 10:02:47 +02:00
2018-01-23 15:44:39 +00:00
2018-07-24 10:02:47 +02:00
2018-07-24 10:02:47 +02:00
2018-03-13 17:18:06 +01:00
2018-01-23 15:44:39 +00:00
2018-01-23 15:44:39 +00:00
2018-10-09 16:33:27 +01:00
2018-07-24 10:02:47 +02:00
2018-07-23 13:31:32 +01:00
2018-07-24 10:02:47 +02:00
2018-07-24 10:02:47 +02:00
2018-01-23 15:44:39 +00:00
2018-07-24 10:02:47 +02:00
2018-07-24 10:02:47 +02:00
2018-07-24 16:43:20 +01:00
2018-07-01 10:22:53 +03:00
2018-08-10 11:17:14 +01:00
2018-06-24 16:56:47 +03:00
2018-06-18 20:51:51 +10:00
2018-09-06 16:24:48 +01:00
2018-07-24 10:02:47 +02:00
2018-01-23 15:44:39 +00:00
2018-07-24 10:02:47 +02:00
2018-07-24 10:02:47 +02:00
2018-07-24 10:02:47 +02:00
2018-04-23 06:16:40 +01:00
2018-07-24 10:02:47 +02:00
2018-05-15 09:21:57 +01:00
2018-07-24 10:02:47 +02:00
2018-01-23 15:44:39 +00:00
2018-07-24 10:02:47 +02:00
2018-06-19 11:13:50 +02:00
2018-07-24 10:02:47 +02:00
2018-07-24 10:02:47 +02:00
2018-08-14 16:08:38 +01:00
2018-07-24 10:02:47 +02:00
2018-07-24 10:02:47 +02:00
2018-07-24 10:02:47 +02:00
2018-07-24 10:02:47 +02:00
2018-01-25 14:47:39 +00:00
2018-07-24 10:02:47 +02:00
2018-01-23 15:44:39 +00:00
2018-08-10 11:17:14 +01:00
2018-06-24 16:56:47 +03:00
2018-07-24 16:43:20 +01:00
2018-08-10 11:17:14 +01:00
2018-01-23 15:44:39 +00:00
2018-07-24 10:02:47 +02:00
2018-01-23 15:44:39 +00:00
2018-07-24 10:02:47 +02:00
2018-01-23 15:44:39 +00:00
2018-07-24 10:02:47 +02:00
2018-01-23 15:44:39 +00:00
2018-01-23 15:44:39 +00:00
2018-09-06 09:08:55 +01:00
2018-07-24 10:02:47 +02:00
2018-07-24 10:02:47 +02:00
2018-07-24 10:02:47 +02:00
2018-04-04 09:19:27 +02:00
2018-07-24 10:02:47 +02:00
2018-07-24 10:02:47 +02:00
2018-07-24 10:02:47 +02:00
2018-07-24 10:02:47 +02:00
2018-01-23 15:44:39 +00:00
2018-06-19 12:11:38 +02:00
2018-07-24 10:02:47 +02:00
2018-08-22 13:32:50 +01:00
2018-07-24 10:02:47 +02:00
2018-08-28 10:29:17 +01:00
2018-09-06 16:24:48 +01:00
2018-07-24 10:02:47 +02:00
2018-09-06 19:10:26 +01:00
2018-01-23 15:44:39 +00:00
2018-07-24 10:02:47 +02:00
2018-01-23 15:44:39 +00:00
2018-01-23 15:44:39 +00:00
2018-07-24 10:02:47 +02:00