Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIPS compatibility #4

Open
fjarri opened this issue Dec 22, 2022 · 0 comments
Open

FIPS compatibility #4

fjarri opened this issue Dec 22, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@fjarri
Copy link
Member

fjarri commented Dec 22, 2022

While the default primality check implemented here (Baillie-PSW test) is time-tested with no counter-examples found, FIPS standard (https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-4.pdf) is more strict. If this library is to be used for RSA, one needs to go through that standard and see if the performed checks, and the details of those checks are compatible with FIPS. In particular,

  • FIPS requires several Miller-Rabin checks, depending on the prime size, instead of the two we currently perform.
  • The Lucas test may need to use the Baillie's Method A* for selecting the base instead of currently implemented Method A
  • Miller-Rabin algorithm needs to be compared with that in FIPS (Sections C.3.1 and C.3.2)
  • Lucas algorithm needs to be compared with that in FIPS (Section C.3.3)
  • Supporting algorithms too (sieving, square root, Jacobi symbol etc - see Appendix C in general)
@fjarri fjarri added the enhancement New feature or request label Dec 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant