<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/bn/bn_kron.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>2023-07-08T12:21:58+00:00</updated>
<entry>
<title>Hide symbols in bn</title>
<updated>2023-07-08T12:21:58+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2023-07-08T12:21:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=1dad5f352903aa46e83f0b1265298f7e1d4a9633'/>
<id>urn:sha1:1dad5f352903aa46e83f0b1265298f7e1d4a9633</id>
<content type='text'>
ok tb@
</content>
</entry>
<entry>
<title>Convert BN_copy() with explicit comparison against NULL to bn_copy()</title>
<updated>2023-03-27T10:21:23+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-03-27T10:21:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a81a8ccd42d8aec45ab93fd62a292dc1d27c0db6'/>
<id>urn:sha1:a81a8ccd42d8aec45ab93fd62a292dc1d27c0db6</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>Zap an empty line</title>
<updated>2023-03-25T10:51:18+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-03-25T10:51:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ab8b6d605277c410917982a61cd7d3d1c2c39dcb'/>
<id>urn:sha1:ab8b6d605277c410917982a61cd7d3d1c2c39dcb</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>Move BN_lsw() to bn_lcl.h so that other code can use it.</title>
<updated>2022-07-12T16:08:19+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-07-12T16:08:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ac8512fe250cec3b5899d097395c326f3f234f8c'/>
<id>urn:sha1:ac8512fe250cec3b5899d097395c326f3f234f8c</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>Tweak a comment</title>
<updated>2022-06-20T19:42:58+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-06-20T19:42:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=0c232807de21f389f04ef3f8c2f3fb8d2e093e8c'/>
<id>urn:sha1:0c232807de21f389f04ef3f8c2f3fb8d2e093e8c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Flip roles of lowercase and uppercase A and B.</title>
<updated>2022-06-20T19:38:25+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-06-20T19:38:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=16c1ab5f46851d4a5688e7e105a6f3c31414a523'/>
<id>urn:sha1:16c1ab5f46851d4a5688e7e105a6f3c31414a523</id>
<content type='text'>
This matches Cohen's text better and makes the entire thing easier to
read.

suggested by jsing
</content>
</entry>
<entry>
<title>Clean up BN_kronecker()</title>
<updated>2022-06-20T19:32:35+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-06-20T19:32:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3e4a2e9464a3863a02833da8b1f8f7c9ca94cdcc'/>
<id>urn:sha1:3e4a2e9464a3863a02833da8b1f8f7c9ca94cdcc</id>
<content type='text'>
Instead of "Cohen's step N" explain in words what is being done. Things
such as (A &amp; B &amp; 2) != 0 being equivalent to (-1)^((A-1)(B-1)/4) being
negative are not entirely obvious...  Remove the strange error dance and
adjust variable names to what Cohen's book uses. Simplify various curly
bits.

ok jsing
</content>
</entry>
<entry>
<title>BN_CTX_get() can fail - consistently check its return value.</title>
<updated>2015-02-09T15:49:22+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2015-02-09T15:49:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=15dc63f9715f4f10924a705d6a4cc564afe2129e'/>
<id>urn:sha1:15dc63f9715f4f10924a705d6a4cc564afe2129e</id>
<content type='text'>
There are currently cases where the return from each call is checked,
the return from only the last call is checked and cases where it is not
checked at all (including code in bn, ec and engine).

Checking the last return value is valid as once the function fails it will
continue to return NULL. However, in order to be consistent check each
call with the same idiom. This makes it easy to verify.

Note there are still a handful of cases that do not follow the idiom -
these will be handled separately.

ok beck@ doug@
</content>
</entry>
</feed>
