<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/bn, 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-12-01T21:59:54+00:00</updated>
<entry>
<title>Update reference to table generation</title>
<updated>2022-12-01T21:59:54+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-12-01T21:59:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=45aa98b071b22b4a4d3899a8a1af3109d41fa30b'/>
<id>urn:sha1:45aa98b071b22b4a4d3899a8a1af3109d41fa30b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>BN_one() can fail, check its return value.</title>
<updated>2022-12-01T02:58:31+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-12-01T02:58:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=6ac34623f0ed759cefdd3f7c8b1a22780121b3f5'/>
<id>urn:sha1:6ac34623f0ed759cefdd3f7c8b1a22780121b3f5</id>
<content type='text'>
ok tb@
</content>
</entry>
<entry>
<title>Rewrite bn_correct_top().</title>
<updated>2022-11-30T03:08:39+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-11-30T03:08:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8b339315b9b1479ac79a4ca2c9d8d7030d7d6bf4'/>
<id>urn:sha1:8b339315b9b1479ac79a4ca2c9d8d7030d7d6bf4</id>
<content type='text'>
bn_correct_top() is currently a macro and far more complex than it needs
to be - rewrite it as a function.

ok tb@
</content>
</entry>
<entry>
<title>Fix return values bug in BN_ucmp().</title>
<updated>2022-11-30T02:52:25+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-11-30T02:52:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=75e4367c588b97f1dcf3b7acd009e84c3797770d'/>
<id>urn:sha1:75e4367c588b97f1dcf3b7acd009e84c3797770d</id>
<content type='text'>
BN_ucmp() is supposed to return -1/0/1 on a &lt; b, a == b and a &gt; b, however
it currently returns other negative and positive values when the top of
a and b differ. Correct this.

ok tb@
</content>
</entry>
<entry>
<title>Mop up more BN_DEBUG related code.</title>
<updated>2022-11-30T01:47:19+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-11-30T01:47:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=79a54ac1fe756018ef33b305a0e8ad1c79b63c3b'/>
<id>urn:sha1:79a54ac1fe756018ef33b305a0e8ad1c79b63c3b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make header guards of internal headers consistent</title>
<updated>2022-11-26T17:23:18+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-11-26T17:23:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3a1908508efa61f3f77ac8036694af2f920df947'/>
<id>urn:sha1:3a1908508efa61f3f77ac8036694af2f920df947</id>
<content type='text'>
Not all of them, only those that didn't leak into a public header...
Yes.
</content>
</entry>
<entry>
<title>bn_lcl.h wanted special treatment.</title>
<updated>2022-11-26T16:11:36+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-11-26T16:11:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8bb7cb3ff1df35d93a1b5e0fc0d4bfdb91221439'/>
<id>urn:sha1:8bb7cb3ff1df35d93a1b5e0fc0d4bfdb91221439</id>
<content type='text'>
</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>Remove BIGNUM consistency macros.</title>
<updated>2022-11-26T13:56:33+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-11-26T13:56:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9171ca1447e11e58ff2d00ba6d28293a138ae41a'/>
<id>urn:sha1:9171ca1447e11e58ff2d00ba6d28293a138ae41a</id>
<content type='text'>
Compiling with BN_DEBUG (and if you want to take it further, BN_DEBUG_RAND)
supposedly adds consistency checks to the BN code. These are rarely if ever
used and introduce a bunch of clutter in the code. Furthermore, there are
hacks in place to undo things that the debugging code does.

Remove all of this mess and instead rely on always enabled checks, more
readable code and proper regress coverage to ensure correct behaviour.

"Good riddance." tb@
</content>
</entry>
<entry>
<title>Change bn_expand()/bn_wexpand() to indicate failure/success via 0/1.</title>
<updated>2022-11-24T01:30:01+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-11-24T01:30:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=fb8d4760ac6775963983a2690ca829edbf8324c4'/>
<id>urn:sha1:fb8d4760ac6775963983a2690ca829edbf8324c4</id>
<content type='text'>
Currently bn_expand()/bn_wexpand() return a BIGNUM *, however none of the
callers use this (and many already treat it as a true/false value).
Change these functions to return 0 on failure and 1 on success, revising
callers that test against NULL in the process.

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