<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto, branch tb_20230715</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=tb_20230715</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=tb_20230715'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2023-07-15T19:29:46+00:00</updated>
<entry>
<title>This commit was manufactured by cvs2git to create tag 'tb_20230715'.</title>
<updated>2023-07-15T19:29:46+00:00</updated>
<author>
<name>cvs2svn</name>
<email>admin@example.com</email>
</author>
<published>2023-07-15T19:29:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=72cc860132e5b7971e495ba621dcd0713b5dd801'/>
<id>urn:sha1:72cc860132e5b7971e495ba621dcd0713b5dd801</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Mop up MD32_XARRAY from md5.</title>
<updated>2023-07-15T15:37:05+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2023-07-15T15:37:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=1ccbafc5259d1d9ac7953865285bd87e6824898d'/>
<id>urn:sha1:1ccbafc5259d1d9ac7953865285bd87e6824898d</id>
<content type='text'>
MD32_XARRAY was added as a workaround for a broken HP C compiler (circa
1999). Clean it up to simplify the code.

No change in generated assembly.
</content>
</entry>
<entry>
<title>Mop up MD32_XARRAY from md4.</title>
<updated>2023-07-15T15:30:43+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2023-07-15T15:30:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=01d9cdcc5f5cbefb02459fe5ffea28c94c1483a3'/>
<id>urn:sha1:01d9cdcc5f5cbefb02459fe5ffea28c94c1483a3</id>
<content type='text'>
MD32_XARRAY was added as a workaround for a broken HP C compiler (circa
1999). Clean it up to simplify the code.

No change in generated assembly.
</content>
</entry>
<entry>
<title>Refactor ASN1_item_sign_ctx()</title>
<updated>2023-07-13T20:59:10+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-13T20:59:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b47ff84e8ef1dd1e7649dcafb4793c0e190471f7'/>
<id>urn:sha1:b47ff84e8ef1dd1e7649dcafb4793c0e190471f7</id>
<content type='text'>
Oh, joy! The muppets had a feast: they could combine the horrors of EVP
with X.509... Return values between -1 and 3 indicating how much work
needs to be done, depending on whether methods are present or absent.
Needless to say that RSA and EdDSA had inconsistent return values until
recently.

Instead of interleaving if/else branches, split out two helper functions
that do essentially independent things, which results in something that
isn't entirely bad. Well, at least not compared to the surrounding code.

asn1_item_set_algorithm_identifiers() extracts the signature algorithm
from the digest and pkey if known, and sets it on the two X509_ALGOR that
may or may not have been passed in.

asn1_item_sign() converts data into der and signs.

Of course there were also a few leaks and missing error checks.

ok jsing
</content>
</entry>
<entry>
<title>Revert accidental addition of cofactor ECDH support</title>
<updated>2023-07-12T08:54:18+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-12T08:54:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=efa15ee1c4f122ae67998dd88bdd8ac06e697206'/>
<id>urn:sha1:efa15ee1c4f122ae67998dd88bdd8ac06e697206</id>
<content type='text'>
This snuck in with ech_key.c r1.33 because I committed from a dirty tree.
</content>
</entry>
<entry>
<title>Rename EC_KEY from r to key like in the rest of the file</title>
<updated>2023-07-10T19:10:51+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-10T19:10:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=bfb18033d6a99b9bcd6163a67b935402e8dc9909'/>
<id>urn:sha1:bfb18033d6a99b9bcd6163a67b935402e8dc9909</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Pull BIGNUM constants out of get_* function bodies</title>
<updated>2023-07-10T03:26:30+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-10T03:26:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=7088bd4571207ed09ccfefbdf3a05f1cca8ba8bc'/>
<id>urn:sha1:7088bd4571207ed09ccfefbdf3a05f1cca8ba8bc</id>
<content type='text'>
The get_rfc*_prime_* functions will be removed. The constants will remain
for the BN_get_rfc*_prime_* functions. Make the latter call BN_bin2bn()
directly on these constants rather than going through get_*. This avoids
some overlong lines. Also KNF for some comments.

Reduces the diff I currently carry by quite a bit.
</content>
</entry>
<entry>
<title>BIO_indent: use %*s rather than puts in a loop</title>
<updated>2023-07-10T02:33:33+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-10T02:33:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=52790ba31e8dbfcb4dfcbcf0025ca01a2d342e5d'/>
<id>urn:sha1:52790ba31e8dbfcb4dfcbcf0025ca01a2d342e5d</id>
<content type='text'>
ok beck jsing millert
</content>
</entry>
<entry>
<title>bn_print: string.h is no longer needed</title>
<updated>2023-07-10T02:29:28+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-10T02:29:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3a8b7e605e474f3f27046066194458fbf8885a22'/>
<id>urn:sha1:3a8b7e605e474f3f27046066194458fbf8885a22</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix ndef_{prefix,suffix}()</title>
<updated>2023-07-09T19:22:43+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-09T19:22:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=839c3ea11171d86f26bbd45c967b4967b8b939cc'/>
<id>urn:sha1:839c3ea11171d86f26bbd45c967b4967b8b939cc</id>
<content type='text'>
These functions inline a poor version of asn1_item_flags_i2d() without
error checks. This can be replaced with a single correct call to
ASN1_item_ndef_i2d(). Mechanically adding malloc checks and checks for
negative did not really improve things all that much in a related project.

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