CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2025/09/29 02:46:15
Modified files:
lib/libcrypto/rsa: rsa_gen.c
Log message:
libcrypto: rsa gen: min. distance between p and q
This is required in NIST Special Publication 800-56B Revision 2
"Recommendation for Pair-Wise Key Establishment Using Integer
Factorization Cryptography":
6 RSA Key Pairs
6.2 Criteria for RSA Key Pairs for Key Establishment
6.2.1 Definition of a Key Pair
3. The prime factors p and q shall be generated using one of
the methods specified in Appendix B.3 of FIPS 186 such that:
c. |p â q| > 2nBits/2â100
ok djm@, tb@