<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/dsa, branch libressl-v3.7.0</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=libressl-v3.7.0</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=libressl-v3.7.0'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2022-11-26T16:08:57+00:00</updated>
<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>Rework pkey_dsa_sign() and pkey_dsa_verify()</title>
<updated>2022-11-19T11:53:38+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-11-19T11:53:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2dabf3e5e824591980d26d9b06b6b28be077f309'/>
<id>urn:sha1:2dabf3e5e824591980d26d9b06b6b28be077f309</id>
<content type='text'>
Since DSA_sign() and DSA_verify() ignore their type argument, don't bother
to determine it here. Check all size_t for overflow before passing them as
int arguments. Follow OpenSSL and add a check to see if the tbs blob's
length matches the one of the md, in case it is set on the EVP_PKEY_CTX.
Fix return value check of DSA_sign().

ok jsing
</content>
</entry>
<entry>
<title>Rework DSA_sign() and DSA_verify()</title>
<updated>2022-11-19T11:48:24+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-11-19T11:48:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=064aae90f56580b61b05fd56fc4c0fffaf8458e0'/>
<id>urn:sha1:064aae90f56580b61b05fd56fc4c0fffaf8458e0</id>
<content type='text'>
Change DSA_sign() to single exit and check the signed i2d_DSA_SIG() return
value before assigning it to an unsigned int.

In DSA_verify() let d2i_DSA_SIG() handle the allocation, split error check
of i2d_DSA_SIG() from signature check and change an unnecessary freezero()
to free.

ok jsing
</content>
</entry>
<entry>
<title>Fix whitespace</title>
<updated>2022-11-19T06:33:00+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-11-19T06:33:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=6048203d2b8ec4f0ea078c70eaa40d6beb109502'/>
<id>urn:sha1:6048203d2b8ec4f0ea078c70eaa40d6beb109502</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix a few more leaks in *_print() functions.</title>
<updated>2022-11-10T12:37:00+00:00</updated>
<author>
<name>tobhe</name>
<email></email>
</author>
<published>2022-11-10T12:37:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=76fc0c1130db1fe7c3d20b66da51f81aa0fdf89c'/>
<id>urn:sha1:76fc0c1130db1fe7c3d20b66da51f81aa0fdf89c</id>
<content type='text'>
ok jsing@
</content>
</entry>
<entry>
<title>Fix leak of pk if EVP_PKEY_set1_DSA() fails.</title>
<updated>2022-11-08T19:17:05+00:00</updated>
<author>
<name>tobhe</name>
<email></email>
</author>
<published>2022-11-08T19:17:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f7bbcf1f4086b29ea35299ac0eb719cc157e526f'/>
<id>urn:sha1:f7bbcf1f4086b29ea35299ac0eb719cc157e526f</id>
<content type='text'>
Found with CodeChecker
ok jsing@
</content>
</entry>
<entry>
<title>Stop using CBIGNUM_it internal to libcrypto.</title>
<updated>2022-09-03T16:01:23+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-09-03T16:01:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2b62b98b944c0df9fbd9e41e33ea96b45b98e84b'/>
<id>urn:sha1:2b62b98b944c0df9fbd9e41e33ea96b45b98e84b</id>
<content type='text'>
CBIGNUM_it is supposed to be the "clear bignum" or "secure" bignum - that
is one which zeros its memory after use and ensures that the constant time
flags are set... in LibreSSL we always do both of these things for BIGNUMs,
so just use BIGNUM_it instead.

ok tb@
</content>
</entry>
<entry>
<title>nasty whitespace</title>
<updated>2022-08-31T13:28:39+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-08-31T13:28:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=bef184c688c711a88c484877b5864988ede7840d'/>
<id>urn:sha1:bef184c688c711a88c484877b5864988ede7840d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rework DSA_size() and ECDSA_size()</title>
<updated>2022-08-31T13:01:01+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-08-31T13:01:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5a012dc99251d6861841dbe500e21ff7a4f63ccc'/>
<id>urn:sha1:5a012dc99251d6861841dbe500e21ff7a4f63ccc</id>
<content type='text'>
DSA_size() and ECDSA_size() have a very special hack. They fudge up an
ASN1_INTEGER with a size which is typically &gt; 100 bytes, backed by a
buffer of size 4. This was "fine", however, since they set buf[0] = 0xff,
where the craziness that was i2c_ASN1_INTEGER() only looks at the first
octet (one may then ask why a buffer of size 4 was necessary...).

This changed with the rewrite of i2c_ASN1_INTEGER(), which doesn't
respect this particular hack and rightly assumes that it is fed an
actual ASN1_INTEGER...

Instead, create an appropriate signature and use i2d to determine its
size.

Fixes an out-of-bounds read flagged by ASAN and oss-fuzz.

ok jsing
</content>
</entry>
<entry>
<title>Remove mkerr.pl remnants from LibreSSL</title>
<updated>2022-07-12T14:42:50+00:00</updated>
<author>
<name>kn</name>
<email></email>
</author>
<published>2022-07-12T14:42:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=89e42d5857196a8071fbafb5565388d0e20ec32b'/>
<id>urn:sha1:89e42d5857196a8071fbafb5565388d0e20ec32b</id>
<content type='text'>
This script is not used at all and files are edited by hand instead.
Thus remove misleading comments incl. the obsolete script/config.

Feedback OK jsing tb
</content>
</entry>
</feed>
