<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/dsa, branch libressl-v3.8.0</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=libressl-v3.8.0</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=libressl-v3.8.0'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2023-04-25T15:48:48+00:00</updated>
<entry>
<title>Wire up truncated SHA-2, SHA-3 and related things</title>
<updated>2023-04-25T15:48:48+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-04-25T15:48:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8c449d8a1445a23c96b8b2f389e256ea32662e36'/>
<id>urn:sha1:8c449d8a1445a23c96b8b2f389e256ea32662e36</id>
<content type='text'>
from jsing
</content>
</entry>
<entry>
<title>Bring includes into canonical order</title>
<updated>2023-04-18T08:47:28+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-04-18T08:47:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=34eb49714b89be6d0c4cddab0bcab8580b6ca809'/>
<id>urn:sha1:34eb49714b89be6d0c4cddab0bcab8580b6ca809</id>
<content type='text'>
Requested by jsing
</content>
</entry>
<entry>
<title>Move some includes out of OPENSSL_NO_DEPRECATED</title>
<updated>2023-04-18T08:33:43+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-04-18T08:33:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=7c140db45f1d1b8f4daf0a81424b35e3a5ff8e29'/>
<id>urn:sha1:7c140db45f1d1b8f4daf0a81424b35e3a5ff8e29</id>
<content type='text'>
Some headers were included conditionally on OPENSSL_NO_DEPRECATED in hopes
that eventually the mess of everything includes everything will magically
resolve itself. Of course everyone would end up building openssl with
OPENSSL_NO_DEPRECATED over time... Right.

Surprisingly, the ecosystem has come to rely on these implicit inclusions,
so about two dozen ports would fail to build because of this. Patching this
would be easy but really not worth the effort.

ok jsing
</content>
</entry>
<entry>
<title>Remove files that definitely contain no code anymore</title>
<updated>2023-04-13T15:04:19+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-04-13T15:04:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c0395cc27a2a4fc50090b7844c42f405112651ed'/>
<id>urn:sha1:c0395cc27a2a4fc50090b7844c42f405112651ed</id>
<content type='text'>
(experts disagree whether they ever did)
</content>
</entry>
<entry>
<title>Move DSA_generate_parameters() from dsa_depr.c to dsa_gen.c</title>
<updated>2023-04-13T14:58:27+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-04-13T14:58:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d665c6a0867b37acd8b9b461169b244b7b6841cf'/>
<id>urn:sha1:d665c6a0867b37acd8b9b461169b244b7b6841cf</id>
<content type='text'>
Discussed with jsing
</content>
</entry>
<entry>
<title>Move a few functions out of OPENSSL_NO_DEPRECATED</title>
<updated>2023-04-09T19:10:23+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-04-09T19:10:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=180ac4430773db8fb86b3343279cc5790eee08e6'/>
<id>urn:sha1:180ac4430773db8fb86b3343279cc5790eee08e6</id>
<content type='text'>
Geoff Thorpe added OPENSSL_NO_DEPRECATED nearly two decades ago. The hope
was that at some point some functions can be dropped. Most of the functions
marked deprecated are actually unused nowadays but unfortunately some of
them are still used in the ecosystem. Move them out of OPENSSL_NO_DEPRECATED
so we can define it without breaking the consumers in the next bump.

ERR_remove_state() is still used by a dozen or so ports. This isn't a big
deal since it is just a stupid wrapper for the not quite as deprecated
ERR_remove_thread_state(). It's not worth patching these ports.

Annoyingly, {DH,DSA}_generate_parameters() and RSA_generate_key() are still
used. They "make use" of the old-style BN_GENCB callback, which is therefore
more difficult to remove - in case you don't know know: that's the thing
responsible for printing pretty '.', '+' and '*' when you generate keys.

Most annoyingly, DH_generate_parameters() was added to rust-openssl in 2020
for "advanced DH support". This is very unfortunate since cargo bundles a
rust-openssl and updates it only every few years or so. As a consequence
we're going to be stuck with this nonsense for a good while.

ok beck jsing
</content>
</entry>
<entry>
<title>Replace the remaining BN_copy() with bn_copy()</title>
<updated>2023-03-27T10:25:02+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-03-27T10:25:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=aeb32cad44c92f3786167b06a0f9c4310cbb713d'/>
<id>urn:sha1:aeb32cad44c92f3786167b06a0f9c4310cbb713d</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>BN_free() is defined in &lt;openssl/bn.h&gt;</title>
<updated>2023-03-25T09:09:28+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-03-25T09:09:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=be8d4c0efe509aa842827cdff6e8886418b50bf6'/>
<id>urn:sha1:be8d4c0efe509aa842827cdff6e8886418b50bf6</id>
<content type='text'>
This is currently pulled in via dsa.h and ecdsa.h, but only when
OPENSSL_NO_DEPRECATED is not defined. We should fix this in the
public header, too - let's wait a bit with that.
</content>
</entry>
<entry>
<title>Fix an off-by-one in dsa_check_key()</title>
<updated>2023-03-11T15:29:03+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-03-11T15:29:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b402f35d1e79e0a473421c7a9de69d6227f38d7e'/>
<id>urn:sha1:b402f35d1e79e0a473421c7a9de69d6227f38d7e</id>
<content type='text'>
The private key is a random number in [1, q-1], so 1 must be allowed.
Since q is at least an 160-bit prime and 2^159 + 1 is not prime (159
is not a power of 2), the probability that this is hit is &lt; 2^-159,
but a tiny little bit wrong is still wrong.

Found while investigating a report by bluhm
ok jsing
</content>
</entry>
<entry>
<title>Call BN_free() instead of BN_clear_free().</title>
<updated>2023-03-07T09:27:10+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2023-03-07T09:27:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=19dfe7f484e5739359ee8c102d879d125df916ad'/>
<id>urn:sha1:19dfe7f484e5739359ee8c102d879d125df916ad</id>
<content type='text'>
BN_clear_free() is a wrapper that calls BN_free() - call BN_free() directly
instead.

ok tb@
</content>
</entry>
</feed>
