<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/regress/lib/libcrypto/bn, branch OPENBSD_7_5_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_5_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_5_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2023-10-19T13:38:12+00:00</updated>
<entry>
<title>Add a few more test cases for mod_exp aliasing</title>
<updated>2023-10-19T13:38:12+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-10-19T13:38:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=1cab02ca58aa0b6ea8a4bc60b9f0c2d11be5a60d'/>
<id>urn:sha1:1cab02ca58aa0b6ea8a4bc60b9f0c2d11be5a60d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>The bn_mod_exp test is no longer an expected failure</title>
<updated>2023-10-19T10:23:38+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-10-19T10:23:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=57e4a8b061ff11605a71914ae2064023e19262d7'/>
<id>urn:sha1:57e4a8b061ff11605a71914ae2064023e19262d7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add test case checking aliasing of the result with other arguments</title>
<updated>2023-10-19T10:17:24+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-10-19T10:17:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2702c851843f026c511b44b50b6bc6e573fbc51f'/>
<id>urn:sha1:2702c851843f026c511b44b50b6bc6e573fbc51f</id>
<content type='text'>
These are expected failures for BN_mod_exp_simple() and the internal
BN_mod_exp_recp(), which will be fixed shortly.
</content>
</entry>
<entry>
<title>Make the bn_rand_interval() API a bit more ergonomic</title>
<updated>2023-08-03T18:53:56+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-08-03T18:53:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=44ff07e01874ea8be0c72bf9d20cb7f13b76cca8'/>
<id>urn:sha1:44ff07e01874ea8be0c72bf9d20cb7f13b76cca8</id>
<content type='text'>
Provide bn_rand_in_range() which is a slightly tweaked version of what was
previously called bn_rand_range().

The way bn_rand_range() is called in libcrypto, the lower bound is always
expressible as a word. In fact, most of the time it is 1, the DH code uses
a 2, the MR tests in BPSW use 3 and an exceptinally high number appears in
the Tonelli-Shanks implementation where we use 32. Converting these lower
bounds to BIGNUMs on the call site is annoying so let bn_rand_interval()
do that internally and route that through bn_rand_in_range(). This way we
can avoid using BN_sub_word().

Adjust the bn_isqrt() test to use bn_rand_in_range() since that's the
only caller that uses actual BIGNUMs as lower bounds.

ok jsing
</content>
</entry>
<entry>
<title>Retire the bn_rand_interval() test</title>
<updated>2023-08-03T18:44:31+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-08-03T18:44:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=6ce6cf23a77a446252150319206f0075eb6267cf'/>
<id>urn:sha1:6ce6cf23a77a446252150319206f0075eb6267cf</id>
<content type='text'>
This test was never particularly useful. An upcoming API change for
the internal bn_rand_interval() API would require some adjustments.
It's not worth it.
</content>
</entry>
<entry>
<title>Annotate bogus output as incorrect</title>
<updated>2023-07-27T06:41:39+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-27T06:41:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=1fff3338bb0ddbb0bc692678dddf845672732555'/>
<id>urn:sha1:1fff3338bb0ddbb0bc692678dddf845672732555</id>
<content type='text'>
Some people already have way too many simple and not too important diffs in
their inbox. This isn't worth kicking something more important out of the
queue.
</content>
</entry>
<entry>
<title>Add test case for negative number with highest bit of top octet set</title>
<updated>2023-07-10T20:21:37+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-10T20:21:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=987c9d09fa4171ebd33a66e334cf7edc8b73c437'/>
<id>urn:sha1:987c9d09fa4171ebd33a66e334cf7edc8b73c437</id>
<content type='text'>
This currently adds an incorrect 00: padding, consistent with OpenSSL's
behavior.
</content>
</entry>
<entry>
<title>Add test coverage for leading zero octet dance</title>
<updated>2023-07-07T07:47:25+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-07T07:47:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=0ab81f6f7614b34883c7a9337251d673e142d410'/>
<id>urn:sha1:0ab81f6f7614b34883c7a9337251d673e142d410</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bn_print: remove unused bio, plug leak</title>
<updated>2023-07-06T15:11:21+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-06T15:11:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=83f9366821e685aefb9733e3797204f7939604ad'/>
<id>urn:sha1:83f9366821e685aefb9733e3797204f7939604ad</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add regress coverage for bn_printf</title>
<updated>2023-07-06T15:08:54+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-06T15:08:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f3a92efb3424a84ed8b53338aa7f8cbc8a893a9b'/>
<id>urn:sha1:f3a92efb3424a84ed8b53338aa7f8cbc8a893a9b</id>
<content type='text'>
This must be one of the ugliest tests I've ever written, but I can't think
of a better way of doing it.
</content>
</entry>
</feed>
