<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/bn, branch libressl-v3.4.1</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=libressl-v3.4.1</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=libressl-v3.4.1'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2021-09-10T14:33:44+00:00</updated>
<entry>
<title>Expose BN_bn2{,le}binpad() and BN_lebin2bn() in &lt;openssl/bn.h&gt;</title>
<updated>2021-09-10T14:33:44+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-09-10T14:33:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9c7f18263be772997a3fc69b29db311365ee986a'/>
<id>urn:sha1:9c7f18263be772997a3fc69b29db311365ee986a</id>
<content type='text'>
ok beck inoguchi
</content>
</entry>
<entry>
<title>Expose BN_RAND_* in &lt;openssl/bn.h&gt;</title>
<updated>2021-09-10T14:32:05+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-09-10T14:32:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a7a8157da1afa7599cecd9217d06cce21e3ad67f'/>
<id>urn:sha1:a7a8157da1afa7599cecd9217d06cce21e3ad67f</id>
<content type='text'>
ok beck jsing
</content>
</entry>
<entry>
<title>Prepare to provide BN_RAND_* flags for BN_rand_range()</title>
<updated>2021-09-10T09:08:03+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-09-10T09:08:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=94aeb3e2fd2aa6f535f045b0ee734b5d1742522f'/>
<id>urn:sha1:94aeb3e2fd2aa6f535f045b0ee734b5d1742522f</id>
<content type='text'>
ok beck jsing
</content>
</entry>
<entry>
<title>Prepare to provide BN_bn2{,le}binpad() and BN_lebin2bn()</title>
<updated>2021-09-08T12:19:17+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-09-08T12:19:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=229cf417ae65dfb488927f3e25593d1dc2aad539'/>
<id>urn:sha1:229cf417ae65dfb488927f3e25593d1dc2aad539</id>
<content type='text'>
As found by jsg and patrick, this is needed for newer uboot and
will also be used in upcoming elliptic curve work.

This is from OpenSSL 1.1.1l with minor style tweaks.

ok beck inoguchi
</content>
</entry>
<entry>
<title>whitespace</title>
<updated>2021-08-31T11:19:19+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-08-31T11:19:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a5a732ed4c036cb60cfcda0d1737f1d383c2b3d0'/>
<id>urn:sha1:a5a732ed4c036cb60cfcda0d1737f1d383c2b3d0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Unindent a bit of code that performs a few too many checks to</title>
<updated>2020-09-12T17:16:36+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2020-09-12T17:16:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ad25ca1fcd0c9ca48a2fcd6e68367cd74d82b01f'/>
<id>urn:sha1:ad25ca1fcd0c9ca48a2fcd6e68367cd74d82b01f</id>
<content type='text'>
figure out whether top &gt; 0 or top == 0.
</content>
</entry>
<entry>
<title>Avoid an out-of-bounds access in BN_rand()</title>
<updated>2020-09-12T15:24:39+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2020-09-12T15:24:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=1e0b199599db7da1624618b2509c1d58106f35f7'/>
<id>urn:sha1:1e0b199599db7da1624618b2509c1d58106f35f7</id>
<content type='text'>
If BN_rand() is called with top &gt; 0 and bits == 1, it would allocate
a buf[] of size 1 and set the top bit of buf[1].

Found in OpenSSL commit efee575ad464bfb60bf72dcb73f9b51768f4b1a1 while
looking for something else.

ok beck djm inoguchi
</content>
</entry>
<entry>
<title>Change generating and checking of primes so that the error rate of</title>
<updated>2019-08-25T19:24:00+00:00</updated>
<author>
<name>schwarze</name>
<email></email>
</author>
<published>2019-08-25T19:24:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=0fd355ae5ac95f1b4265d2c28d096b63de52a902'/>
<id>urn:sha1:0fd355ae5ac95f1b4265d2c28d096b63de52a902</id>
<content type='text'>
not being prime depends on the intended use based on the size of
the input.  For larger primes this will result in more rounds of
Miller-Rabin.  The maximal error rate for primes with more than
1080 bits is lowered to 2^-128.
Patch from Kurt Roeckx &lt;kurt@roeckx.be&gt; and Annie Yousar
via OpenSSL commit feac7a1c Jul 25 18:55:16 2018 +0200,
still under a free license.
OK 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>Make BN_num_bits_word() constant time.</title>
<updated>2019-06-17T17:11:48+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2019-06-17T17:11:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=aad713565aa006bc353dc31ecaa5e9f0aa3de235'/>
<id>urn:sha1:aad713565aa006bc353dc31ecaa5e9f0aa3de235</id>
<content type='text'>
Previously, this function would leak the most significant word of its
argument due to branching and memory access pattern.  This patch is
enough to fix the use of BN_num_bits() on RSA prime factors in the
library.

The diff is a simplified and more readable (but perhaps less efficient)
version of https://github.com/openssl/openssl/commit/972c87df
by Andy Polyakov and David Benjamin (pre license change). Consult that
commit message for details. Subsequent fixes to follow in the near future.

Issue pointed out by David Schrammel and Samuel Weiser as part of
a larger report.

tests &amp; ok inoguchi, ok jsing
</content>
</entry>
</feed>
