mirror of
https://github.com/libtom/libtomcrypt
synced 2026-08-25 20:26:07 -04:00
increase default value of Miller-Rabin rounds to 40
This commit is contained in:
parent
4503ddcfb0
commit
dd0bbdeac0
1 changed files with 3 additions and 2 deletions
|
|
@ -26,8 +26,9 @@
|
|||
|
||||
#ifndef LTC_MILLER_RABIN_REPS
|
||||
/* Number of rounds of the Miller-Rabin test
|
||||
* "Reasonable values of reps are between 15 and 50." c.f. gmp doc of mpz_probab_prime_p() */
|
||||
#define LTC_MILLER_RABIN_REPS 35
|
||||
* "Reasonable values of reps are between 15 and 50." c.f. gmp doc of mpz_probab_prime_p()
|
||||
* As of https://security.stackexchange.com/a/4546 we should use 40 rounds */
|
||||
#define LTC_MILLER_RABIN_REPS 40
|
||||
#endif
|
||||
|
||||
int radix_to_bin(const void *in, int radix, void *out, unsigned long *len);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue