diff options
author | jan <> | 2025-09-29 08:46:15 +0000 |
---|---|---|
committer | jan <> | 2025-09-29 08:46:15 +0000 |
commit | 46c56e258ad51543fa1d174ca9568ef545233a34 (patch) | |
tree | 3bf9e2e29e543ebeaa5c59e952488f696ecca0e3 /src/lib/libc/stdlib/tfind.c | |
parent | 3d7417f2050e2c59d3bc34048d7ddf7f9335c1e0 (diff) | |
download | openbsd-46c56e258ad51543fa1d174ca9568ef545233a34.tar.gz openbsd-46c56e258ad51543fa1d174ca9568ef545233a34.tar.bz2 openbsd-46c56e258ad51543fa1d174ca9568ef545233a34.zip |
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@
Diffstat (limited to 'src/lib/libc/stdlib/tfind.c')
0 files changed, 0 insertions, 0 deletions