<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/bn/bn_ctx.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>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>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>Remove the no longer used BN_CTX_init()</title>
<updated>2023-04-25T16:41:29+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-04-25T16:41:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=e385d95ccac47b1980003c281412c39ead2aeb83'/>
<id>urn:sha1:e385d95ccac47b1980003c281412c39ead2aeb83</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>Rewrite BN_CTX.</title>
<updated>2023-01-14T15:23:27+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2023-01-14T15:23:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=e182204c3487929ef9f6791554e79586f4d30335'/>
<id>urn:sha1:e182204c3487929ef9f6791554e79586f4d30335</id>
<content type='text'>
The current BN_CTX implementation is an incredibly overengineered piece of
code, which even includes its own debug system.

Rewrite BN_CTX from scratch, simplifying things things considerably by
having a "stack" of BIGNUM pointers and a matching array of group
assignments. This means that BN_CTX_start() and BN_CTX_end() effectively
do not fail. Unlike the previous implementation, if a failure occurs
nothing will work and the BN_CTX must be freed/recreated, instead of
trying to pick up at the point where the failure occurred (which does
not make sense given its intended usage).

Additionally, it has long been documented that BN_CTX_start() must be
called before BN_CTX_get() can be used, however the previous implementation
did not actually enforce this. Now that missing BN_CTX_start() and
BN_CTX_end() calls have been added to DSA and EC, we can actually make
this a hard requirement.

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 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>make BN_CTX_end(NULL) a NOOP for compatibility with documented behaviour</title>
<updated>2019-08-20T10:59:09+00:00</updated>
<author>
<name>schwarze</name>
<email></email>
</author>
<published>2019-08-20T10:59:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=4569778023d8d4ec0159e09baa48f5f397ff8847'/>
<id>urn:sha1:4569778023d8d4ec0159e09baa48f5f397ff8847</id>
<content type='text'>
in OpenSSL 1.1.1 even though in general, letting random functions
accept NULL is not advisable because it can hide programming errors;

"yes please" tb@
"unfortunately I suspect you're right" jsing@
"oh well" deraadt@
</content>
</entry>
<entry>
<title>Send the function codes from the error functions to the bit bucket,</title>
<updated>2017-01-29T17:49:23+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2017-01-29T17:49:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d1f47bd292f36094480caa49ada36b99a69c59b0'/>
<id>urn:sha1:d1f47bd292f36094480caa49ada36b99a69c59b0</id>
<content type='text'>
as was done earlier in libssl. Thanks inoguchi@ for noticing
libssl had more reacharounds into this.
ok jsing@ inoguchi@
</content>
</entry>
<entry>
<title>Remove unnecessary include of assert.h</title>
<updated>2015-02-10T09:50:12+00:00</updated>
<author>
<name>miod</name>
<email></email>
</author>
<published>2015-02-10T09:50:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9a78b93a933764528a75722869255ee06e8eab6c'/>
<id>urn:sha1:9a78b93a933764528a75722869255ee06e8eab6c</id>
<content type='text'>
</content>
</entry>
</feed>
