<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/regress/lib/libcrypto/bn, branch OPENBSD_7_6_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_6_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_6_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2024-08-23T12:56:26+00:00</updated>
<entry>
<title>Remove unwanted trailing newlines from err/warn format strings.</title>
<updated>2024-08-23T12:56:26+00:00</updated>
<author>
<name>anton</name>
<email></email>
</author>
<published>2024-08-23T12:56:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=59a63e5d5b4880e7c8d59b13e37550a4af4f1274'/>
<id>urn:sha1:59a63e5d5b4880e7c8d59b13e37550a4af4f1274</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add regress coverage for BN_lebin2bn().</title>
<updated>2024-04-17T08:51:11+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2024-04-17T08:51:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2f4ab0ff6fa52f62a82dc4e35ee9fe7127be40a9'/>
<id>urn:sha1:2f4ab0ff6fa52f62a82dc4e35ee9fe7127be40a9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Enable negative zero checks for BN_clear_bit() and BN_mask_bits().</title>
<updated>2024-04-15T14:36:16+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2024-04-15T14:36:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3e77acd7813446f3ddd9a219d58a285382a53904'/>
<id>urn:sha1:3e77acd7813446f3ddd9a219d58a285382a53904</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bn_convert: plug leak spotted by ASAN</title>
<updated>2024-04-09T16:06:01+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-04-09T16:06:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2b19d85e0886d5d923770609655df89082076936'/>
<id>urn:sha1:2b19d85e0886d5d923770609655df89082076936</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add initial regress for BN_set_bit(), BN_clear_bit() and BN_mask_bits().</title>
<updated>2024-04-09T14:59:57+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2024-04-09T14:59:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=0422bd794cbdecfe5019a0a13bd33016b557553d'/>
<id>urn:sha1:0422bd794cbdecfe5019a0a13bd33016b557553d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add regress coverage for BN_bn2mpi()/BN_mpi2bn().</title>
<updated>2024-04-09T14:56:21+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2024-04-09T14:56:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b8c88001b5afd4a8b5b2db2b453dd9f5d2d39e86'/>
<id>urn:sha1:b8c88001b5afd4a8b5b2db2b453dd9f5d2d39e86</id>
<content type='text'>
</content>
</entry>
<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>
</feed>
