- Notifications
You must be signed in to change notification settings - Fork910
Commitb51d00b
committed
Use BN_ULONG in probable_prime_dh()
This was the last user of BN_LONG in code. It had no reason to do so.BN_mod_word() returns a BN_ULONG and since the largest prime in thesmall primes table primes[] is well below 20000, the only return valuethat could cause 'mod' to be negative was the error sentinel (BN_ULONG)-1.ok jsing kenjiro1 parent2dc93f8 commitb51d00b
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
341 | | - | |
| 341 | + | |
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
| |||
0 commit comments
Comments
(0)