<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/rsa/rsa_gen.c, branch OPENBSD_7_9_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2025-09-29T08:46:15+00:00</updated>
<entry>
<title>libcrypto: rsa gen: min. distance between p and q</title>
<updated>2025-09-29T08:46:15+00:00</updated>
<author>
<name>jan</name>
<email></email>
</author>
<published>2025-09-29T08:46:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=46c56e258ad51543fa1d174ca9568ef545233a34'/>
<id>urn:sha1:46c56e258ad51543fa1d174ca9568ef545233a34</id>
<content type='text'>
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| &gt; 2nBits/2−100

ok djm@, tb@
</content>
</entry>
<entry>
<title>Use err_local.h rather than err.h in most places</title>
<updated>2025-05-10T05:54:39+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-05-10T05:54:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=41e8f99dd1625a9f0c80ce9d4383e95b18e85709'/>
<id>urn:sha1:41e8f99dd1625a9f0c80ce9d4383e95b18e85709</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>Hide symbols in rsa</title>
<updated>2023-07-08T12:26:45+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2023-07-08T12:26:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a651e5a57705b3b3f225ed686118217a44e93036'/>
<id>urn:sha1:a651e5a57705b3b3f225ed686118217a44e93036</id>
<content type='text'>
ok tb@
</content>
</entry>
<entry>
<title>The NBs have been duly noted and ignored. Drop them.</title>
<updated>2023-04-13T15:18:29+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-04-13T15:18:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3cb9a58bd29a6b9ec20a0973df479b81becf5c37'/>
<id>urn:sha1:3cb9a58bd29a6b9ec20a0973df479b81becf5c37</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move RSA_generate_key() from rsa_depr.c to rsa_gen.c</title>
<updated>2023-04-13T14:59:13+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-04-13T14:59:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a5d60fe5b19a23b4f40ceead289cb155b7409f2a'/>
<id>urn:sha1:a5d60fe5b19a23b4f40ceead289cb155b7409f2a</id>
<content type='text'>
Discussed with jsing
</content>
</entry>
<entry>
<title>Convert BN_copy() with missing error checks to bn_copy()</title>
<updated>2023-03-27T10:22:47+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-03-27T10:22:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=31952254deba94cb76af7a03b169b818e5af326c'/>
<id>urn:sha1:31952254deba94cb76af7a03b169b818e5af326c</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>Make internal header file names consistent</title>
<updated>2022-11-26T16:08:57+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-11-26T16:08:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=81d98bf600a381a625eb11b39a725b08c0ba547f'/>
<id>urn:sha1:81d98bf600a381a625eb11b39a725b08c0ba547f</id>
<content type='text'>
Libcrypto currently has a mess of *_lcl.h, *_locl.h, and *_local.h names
used for internal headers. Move all these headers we inherited from
OpenSSL to *_local.h, reserving the name *_internal.h for our own code.
Similarly, move dtls_locl.h and ssl_locl.h to dtls_local and ssl_local.h.
constant_time_locl.h is moved to constant_time.h since it's special.

Adjust all .c files in libcrypto, libssl and regress.

The diff is mechanical with the exception of tls13_quic.c, where
#include &lt;ssl_locl.h&gt; was fixed manually.

discussed with jsing,
no objection bcook
</content>
</entry>
<entry>
<title>Fix check for BN_mod_inverse_ct return value</title>
<updated>2022-01-20T11:12:14+00:00</updated>
<author>
<name>inoguchi</name>
<email></email>
</author>
<published>2022-01-20T11:12:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=1ca471b8e14d63d9b7059b86938ef989ff0857db'/>
<id>urn:sha1:1ca471b8e14d63d9b7059b86938ef989ff0857db</id>
<content type='text'>
ok jsing@ millert@ tb@
</content>
</entry>
<entry>
<title>Prepare to make RSA and RSA_METHOD opaque by including rsa_locl.h</title>
<updated>2022-01-07T09:55:32+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-01-07T09:55:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=443c3d5c755f7f540390fcf1a11c8a443b2553cc'/>
<id>urn:sha1:443c3d5c755f7f540390fcf1a11c8a443b2553cc</id>
<content type='text'>
where it will be needed in the upcoming bump.

discussed with jsing
</content>
</entry>
<entry>
<title>Consistently call BN_init() before BN_with_flags()</title>
<updated>2021-12-26T15:16:50+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-12-26T15:16:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8bbb1196379de707bb70e7d4ef92d3d214ec58bb'/>
<id>urn:sha1:8bbb1196379de707bb70e7d4ef92d3d214ec58bb</id>
<content type='text'>
BN_with_flags() preserves the BN_FLG_MALLOCED flag of the destination
which results in a potential use of an uninitialized bit. In practice
this doesn't matter since we don't free the cloned BIGNUMs anyway.

As jsing points out, these are mostly pointless noise and should be
garbage collected. I'll leave that for another rainy day.

Coverity flagged one instance BN_gcd_no_branch(), the rest was found by
the ever so helpful grep(1).

CID 345122

ok jsing
</content>
</entry>
</feed>
