<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/rsa/rsa_eay.c, branch OPENBSD_7_9</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9'/>
<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>Rework BN_BLINDING to use pthread_t directly</title>
<updated>2023-08-09T12:09:06+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-08-09T12:09:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f6afd562e52c37d3b28855caea8e1d7b0cf643c5'/>
<id>urn:sha1:f6afd562e52c37d3b28855caea8e1d7b0cf643c5</id>
<content type='text'>
Instead of CRYPTO_THREADID, which passes pthread_via through unsigned long,
we can use pthread_self() and pthread_equal() directly. This commit keeps
using the awkward 'local' nomenclature as that is used throughout the rsa
code. This will be changed after the blinding code will have been fully
merged into rsa_blinding.c.

ok jsing
</content>
</entry>
<entry>
<title>Merge remainder of rsa_crpt.c into rsa_eay.c</title>
<updated>2023-08-09T09:32:23+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-08-09T09:32:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5beb145459dc0be8af47bc0b606d828fbe0e0910'/>
<id>urn:sha1:5beb145459dc0be8af47bc0b606d828fbe0e0910</id>
<content type='text'>
Most of these are one line wrappers around methods implemented in rsa_eay.c
by default.
</content>
</entry>
<entry>
<title>Drop the _ex from BN_BLINDING_{convert,invert}_ex()</title>
<updated>2023-08-02T08:44:38+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-08-02T08:44:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=0a5b92c72e6db90ab62220b775b714885b4dbb12'/>
<id>urn:sha1:0a5b92c72e6db90ab62220b775b714885b4dbb12</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Hide symbols in rsa</title>
<updated>2023-07-08T12:26:45+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2023-07-08T12:26:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a651e5a57705b3b3f225ed686118217a44e93036'/>
<id>urn:sha1:a651e5a57705b3b3f225ed686118217a44e93036</id>
<content type='text'>
ok tb@
</content>
</entry>
<entry>
<title>Rename RSA_eay_* to rsa_*.</title>
<updated>2023-07-07T10:11:23+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2023-07-07T10:11:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=10c810ab2ccd672826b12029bdf6010b52386ac7'/>
<id>urn:sha1:10c810ab2ccd672826b12029bdf6010b52386ac7</id>
<content type='text'>
Rename all of the RSA_eay_* functions to rsa_*, as well as changing the
method name (and naming). Reorder things slightly so that we can remove
all of the prototypes for static functions.

ok tb@
</content>
</entry>
<entry>
<title>Add back support for RSA_X931_PADDING</title>
<updated>2023-05-05T12:21:44+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-05-05T12:21:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c167f76677a4e5f366fabdcac0782677114c0a66'/>
<id>urn:sha1:c167f76677a4e5f366fabdcac0782677114c0a66</id>
<content type='text'>
This makes the custom stalt stack work again.

Tested by robert as part of a larger diff
ok jsing
</content>
</entry>
<entry>
<title>Stop supporting the long-retired X9.31 standard</title>
<updated>2023-04-15T18:48:52+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-04-15T18:48:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=252c3b7366e10df7f94c0f10ec01513675fac0a3'/>
<id>urn:sha1:252c3b7366e10df7f94c0f10ec01513675fac0a3</id>
<content type='text'>
This isolates the three API functions from the library so they can be
easily removed and any attempt to use RSA_X931_PADDING mode will now
result in an error.

ok jsing
</content>
</entry>
<entry>
<title>Add a few missing braces</title>
<updated>2023-04-05T11:31:38+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-04-05T11:31:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=1ef8be17fbacb074d183be6f8f16ed7a4e6b5037'/>
<id>urn:sha1:1ef8be17fbacb074d183be6f8f16ed7a4e6b5037</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>Set up the RSA's _method_mod_n before the initial blinding</title>
<updated>2023-04-05T11:30:12+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-04-05T11:30:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ef668f6efd59ba2a39910b06cb34317de568940f'/>
<id>urn:sha1:ef668f6efd59ba2a39910b06cb34317de568940f</id>
<content type='text'>
As observed by Bernd Edlinger, the main part of the RSA timing leak that was
recently made public is that the initial blinding isn't done with Montgomery
exponentiation but rather with plain exponentiation.

Pull up the initialization of the cached Montgomery context to ensure we use
Montgomery exponentiation. Do this for private_{de,en}crypt(). Interestingly,
the latter was fixed in OpenSSL a while ago by Andy Polyakov as part of the
"smooth CRT-RSA" addition.

If this code was anything but completely insane this would never have been
an issue in the first place. But it's libcrypto...

ok jsing
</content>
</entry>
</feed>
