<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/rsa, branch OPENBSD_7_6</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_6</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_6'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2024-08-29T16:58:19+00:00</updated>
<entry>
<title>Remove the pkey_{,public_,param_}check() handlers</title>
<updated>2024-08-29T16:58:19+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-08-29T16:58:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c8099c070f0c547b73edced83591dbd871254307'/>
<id>urn:sha1:c8099c070f0c547b73edced83591dbd871254307</id>
<content type='text'>
This disables the EVP_PKEY_*check() API and makes it fail (more precisely
indicate lack of support) on all key types.

This is an intermediate step to full removal.
Removal is ok beck jsing
</content>
</entry>
<entry>
<title>Implement X509_get_signature_info()</title>
<updated>2024-08-28T07:15:04+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-08-28T07:15:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f822543d6a7043acc1d14a3e0b44eddc1051b097'/>
<id>urn:sha1:f822543d6a7043acc1d14a3e0b44eddc1051b097</id>
<content type='text'>
This is a slightly strange combination of OBJ_find_sigid_algs() and the
security level API necessary because OBJ_find_sigid_algs() on its own
isn't smart enough for the special needs of RSA-PSS and EdDSA.

The API extracts the hash's NID and the pubkey's NID from the certificate's
signatureAlgorithm and invokes special handlers for RSA-PSS and EdDSA
for retrieving the corresponding information. This isn't entirely free
for RSA-PSS, but for now we don't cache this information.

The security bits calculation is a bit hand-wavy, but that's something
that comes along with this sort of numerology.

ok jsing
</content>
</entry>
<entry>
<title>replace atoi(3) usage with strtonum(3); ok/tweaks tb@</title>
<updated>2024-08-26T22:01:28+00:00</updated>
<author>
<name>op</name>
<email></email>
</author>
<published>2024-08-26T22:01:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=07d3f305ea24da68aec66c7e4be39317f6ea7dae'/>
<id>urn:sha1:07d3f305ea24da68aec66c7e4be39317f6ea7dae</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Hide global _it symbols in rsa.h</title>
<updated>2024-07-08T17:10:18+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2024-07-08T17:10:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=da5d57728b051bf038e986004831cc0ea095d94c'/>
<id>urn:sha1:da5d57728b051bf038e986004831cc0ea095d94c</id>
<content type='text'>
ok tb@
</content>
</entry>
<entry>
<title>libcrypto: constify most error string tables</title>
<updated>2024-06-24T06:43:23+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-06-24T06:43:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c9802a5afe29675d69b605ce906d34fd89c024ac'/>
<id>urn:sha1:c9802a5afe29675d69b605ce906d34fd89c024ac</id>
<content type='text'>
These constitute the bulk of the remaining global mutable state in
libcrypto. This commit moves most of them into data.rel.ro, leaving
out ERR_str_{functs,libraries,reasons} (which require a slightly
different approach) and SYS_str_reasons which is populated on startup.

The main observation is that if ERR_load_strings() is called with a 0 lib
argument, the ERR_STRING_DATA argument is not actually modified. We could
use this fact to cast away const on the caller side and be done with it.
We can make this cleaner by adding a helper ERR_load_const_strings() which
explicitly avoids the assignment to str-&gt;error overriding the error code
already set in the table.

In order for this to work, we need to sprinkle some const in err/err.c.
CMS called ERR_load_strings() with non-0 lib argument, but this didn't
actually modify the error data since it ored in the value already stored
in the table.

Annoyingly, we need to cast const away once, namely in the call to
lh_insert() in int_err_set_item(). Fixing this would require changing
the public API and is going to be tricky since it requires that the
LHASH_DOALL_FN_* types adjust.

ok jsing
</content>
</entry>
<entry>
<title>remove prototypes with no matching function</title>
<updated>2024-05-19T07:12:50+00:00</updated>
<author>
<name>jsg</name>
<email></email>
</author>
<published>2024-05-19T07:12:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9dd363a8109e5383b08891f9d0307a5d5aa2bc09'/>
<id>urn:sha1:9dd363a8109e5383b08891f9d0307a5d5aa2bc09</id>
<content type='text'>
feedback and ok tb@
</content>
</entry>
<entry>
<title>Rewrite RSA_padding_add_PKCS1_type_{1,2}() with CBS/CBB.</title>
<updated>2024-03-30T04:34:17+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2024-03-30T04:34:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=688cee18c74634f0c45a5c262fd953f3a9b8ae7f'/>
<id>urn:sha1:688cee18c74634f0c45a5c262fd953f3a9b8ae7f</id>
<content type='text'>
ok tb@
</content>
</entry>
<entry>
<title>Unify *_up_ref() implementations</title>
<updated>2024-03-27T01:22:30+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-03-27T01:22:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=34e2ca7d2d0a0fb4722dfa5e884d5657ea45d8f8'/>
<id>urn:sha1:34e2ca7d2d0a0fb4722dfa5e884d5657ea45d8f8</id>
<content type='text'>
No need for an inconsistently named local variable and a ternary operator.

ok jsing
</content>
</entry>
<entry>
<title>Clean up use of EVP_MD_CTX_{legacy_clear,cleanup} in PKCS1_MGF1</title>
<updated>2024-03-26T05:37:28+00:00</updated>
<author>
<name>joshua</name>
<email></email>
</author>
<published>2024-03-26T05:37:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=527b97ecc53623ab1854a112cab37ebd33a24109'/>
<id>urn:sha1:527b97ecc53623ab1854a112cab37ebd33a24109</id>
<content type='text'>
ok tb@
</content>
</entry>
<entry>
<title>Clean up use of EVP_MD_CTX_{legacy_clear,cleanup} in</title>
<updated>2024-03-26T05:26:27+00:00</updated>
<author>
<name>joshua</name>
<email></email>
</author>
<published>2024-03-26T05:26:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=e978a251991069caf6ee014d5a5df9bc58135470'/>
<id>urn:sha1:e978a251991069caf6ee014d5a5df9bc58135470</id>
<content type='text'>
RSA_verify_PKCS1_PSS_mgf1

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