<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/dh/dh_key.c, branch OPENBSD_7_9</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2025-05-10T05:54:39+00:00</updated>
<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>Make the DH_METHOD static const</title>
<updated>2024-05-09T20:43:36+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-05-09T20:43:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=32ae72547b5bef8f4ddc0d99ff57e2c3420f3f27'/>
<id>urn:sha1:32ae72547b5bef8f4ddc0d99ff57e2c3420f3f27</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move public API and DH_METHOD to the bottom of the file</title>
<updated>2024-05-09T20:40:42+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-05-09T20:40:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=525977b29b7ed925f391a4dfa8f2404eec3239f7'/>
<id>urn:sha1:525977b29b7ed925f391a4dfa8f2404eec3239f7</id>
<content type='text'>
no functional change
</content>
</entry>
<entry>
<title>Make the bn_rand_interval() API a bit more ergonomic</title>
<updated>2023-08-03T18:53:56+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-08-03T18:53:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=44ff07e01874ea8be0c72bf9d20cb7f13b76cca8'/>
<id>urn:sha1:44ff07e01874ea8be0c72bf9d20cb7f13b76cca8</id>
<content type='text'>
Provide bn_rand_in_range() which is a slightly tweaked version of what was
previously called bn_rand_range().

The way bn_rand_range() is called in libcrypto, the lower bound is always
expressible as a word. In fact, most of the time it is 1, the DH code uses
a 2, the MR tests in BPSW use 3 and an exceptinally high number appears in
the Tonelli-Shanks implementation where we use 32. Converting these lower
bounds to BIGNUMs on the call site is annoying so let bn_rand_interval()
do that internally and route that through bn_rand_in_range(). This way we
can avoid using BN_sub_word().

Adjust the bn_isqrt() test to use bn_rand_in_range() since that's the
only caller that uses actual BIGNUMs as lower bounds.

ok jsing
</content>
</entry>
<entry>
<title>Hide symbols in dh</title>
<updated>2023-07-08T15:29:04+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2023-07-08T15:29:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c15c3edb5607f3e03c47fdea19a5828ad6d9c477'/>
<id>urn:sha1:c15c3edb5607f3e03c47fdea19a5828ad6d9c477</id>
<content type='text'>
ok tb@
</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>Add an essentially empty dh_local.h and include it in the files where</title>
<updated>2022-01-07T09:27:13+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-01-07T09:27:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=01c3a3efcb3377bc530d4bf225668754e137d085'/>
<id>urn:sha1:01c3a3efcb3377bc530d4bf225668754e137d085</id>
<content type='text'>
it will be needed in the upcoming bump.

discussed with jsing
</content>
</entry>
<entry>
<title>Missing initialization for pub_key. CID 184303.</title>
<updated>2018-11-12T17:39:17+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2018-11-12T17:39:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=7d635d52fecd4640ce8a3679055f747c8f7e42b9'/>
<id>urn:sha1:7d635d52fecd4640ce8a3679055f747c8f7e42b9</id>
<content type='text'>
ok bcook
</content>
</entry>
<entry>
<title>Initialize priv_key and pub_key on first use instead of at the top.</title>
<updated>2018-11-09T23:49:18+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2018-11-09T23:49:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3a1709b1032136da69943b85f89bd08db5f23a9b'/>
<id>urn:sha1:3a1709b1032136da69943b85f89bd08db5f23a9b</id>
<content type='text'>
While there, eliminate a flag that was only used once.

ok beck jsing mestre
</content>
</entry>
<entry>
<title>unrevert the use of bn_rand_interval().</title>
<updated>2018-11-06T07:02:33+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2018-11-06T07:02:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b1f2fa8da88f8be2fe7d6d9d2b8308537fcfb408'/>
<id>urn:sha1:b1f2fa8da88f8be2fe7d6d9d2b8308537fcfb408</id>
<content type='text'>
ok beck jsing
</content>
</entry>
</feed>
