<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/cms, branch OPENBSD_7_2</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_2</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_2'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2022-08-28T18:27:47+00:00</updated>
<entry>
<title>Plug memory leak in CMS_add_simple_smimecap() in the unlikely event that</title>
<updated>2022-08-28T18:27:47+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-08-28T18:27:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b0456ada9d95082610b820d3b1226160e07765d5'/>
<id>urn:sha1:b0456ada9d95082610b820d3b1226160e07765d5</id>
<content type='text'>
ASN1_INTEGER_set() fails.

ok jsing
</content>
</entry>
<entry>
<title>Remove mkerr.pl remnants from LibreSSL</title>
<updated>2022-07-12T14:42:50+00:00</updated>
<author>
<name>kn</name>
<email></email>
</author>
<published>2022-07-12T14:42:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=89e42d5857196a8071fbafb5565388d0e20ec32b'/>
<id>urn:sha1:89e42d5857196a8071fbafb5565388d0e20ec32b</id>
<content type='text'>
This script is not used at all and files are edited by hand instead.
Thus remove misleading comments incl. the obsolete script/config.

Feedback OK jsing tb
</content>
</entry>
<entry>
<title>Add check for EVP_CIPHER_CTX_set_key_length return value</title>
<updated>2022-01-20T10:58:35+00:00</updated>
<author>
<name>inoguchi</name>
<email></email>
</author>
<published>2022-01-20T10:58:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2192f9d8c922d7178d2f2df094d0e82bb30c8afb'/>
<id>urn:sha1:2192f9d8c922d7178d2f2df094d0e82bb30c8afb</id>
<content type='text'>
It returns 1 on success and 0 for failure, never negative value.

ok jsing@ millert@ tb@
</content>
</entry>
<entry>
<title>Check return value from EVP_CIPHER_CTX_new in cms_pwri.c</title>
<updated>2022-01-19T13:47:44+00:00</updated>
<author>
<name>inoguchi</name>
<email></email>
</author>
<published>2022-01-19T13:47:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=588ca0cba94f4202b54289ec730f971a07e97001'/>
<id>urn:sha1:588ca0cba94f4202b54289ec730f971a07e97001</id>
<content type='text'>
CID 345137

ok jsing@ tb@
</content>
</entry>
<entry>
<title>Garbage collect the app_items field of ASN1_ADB</title>
<updated>2022-01-14T08:16:13+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-01-14T08:16:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ec5f7af843436771be5081c868e0fb0b44069ead'/>
<id>urn:sha1:ec5f7af843436771be5081c868e0fb0b44069ead</id>
<content type='text'>
This is unused and was removed in OpenSSL 5b70372d when it was
replaced with an ASN.1 ADB callback (which we don't support).

ok inoguchi jsing
</content>
</entry>
<entry>
<title>Move the now internal X.509-related structs into x509_lcl.h.</title>
<updated>2021-11-01T20:53:08+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-11-01T20:53:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f478d62658b61e2242dbf3575bf454f8c0f432b1'/>
<id>urn:sha1:f478d62658b61e2242dbf3575bf454f8c0f432b1</id>
<content type='text'>
Garbage collect the now unused LIBRESSL_CRYPTO_INTERNAL and
LIBRESSL_OPAQUE_X509. Include "x509_lcl.h" where needed and
fix a couple of unnecessary reacharounds.

ok jsing
</content>
</entry>
<entry>
<title>Fix leak in cms_RecipientInfo_kekri_decrypt()</title>
<updated>2021-09-08T14:33:02+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-09-08T14:33:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=34dad726781647a28729bb3e2fa6f77ca206abe8'/>
<id>urn:sha1:34dad726781647a28729bb3e2fa6f77ca206abe8</id>
<content type='text'>
Free ec-&gt;key before reassigning it.

From OpenSSL 1.1.1, 58e1e397

ok inoguchi
</content>
</entry>
<entry>
<title>Remove remaining error *_str_functs[]</title>
<updated>2020-06-05T16:51:12+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-06-05T16:51:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=6aa0c4f1ec702bb2c820322709abd9c1767842fa'/>
<id>urn:sha1:6aa0c4f1ec702bb2c820322709abd9c1767842fa</id>
<content type='text'>
A number of years ago we dropped the concept of having function names in
errors, since it is not that useful and very quickly gets out of sync when
refactoring. It would seem that some new ones got imported and some missed
the last clean up.

ok tb@ beck@ "kill it with fire"
</content>
</entry>
<entry>
<title>Fix a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey.</title>
<updated>2019-10-04T18:03:56+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2019-10-04T18:03:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=03a0a727a85c64d9828255b797ef2d1d59c061df'/>
<id>urn:sha1:03a0a727a85c64d9828255b797ef2d1d59c061df</id>
<content type='text'>
(Note that the CMS code is currently disabled.)

Port of Edlinger's Fix for CVE-2019-1563 from OpenSSL 1.1.1 (old license)

tests from bluhm@
ok jsing

commit e21f8cf78a125cd3c8c0d1a1a6c8bb0b901f893f
Author: Bernd Edlinger &lt;bernd.edlinger@hotmail.de&gt;
Date:   Sun Sep 1 00:16:28 2019 +0200

    Fix a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey

    An attack is simple, if the first CMS_recipientInfo is valid but the
    second CMS_recipientInfo is chosen ciphertext. If the second
    recipientInfo decodes to PKCS #1 v1.5 form plaintext, the correct
    encryption key will be replaced by garbage, and the message cannot be
    decoded, but if the RSA decryption fails, the correct encryption key is
    used and the recipient will not notice the attack.

    As a work around for this potential attack the length of the decrypted
    key must be equal to the cipher default key length, in case the
    certifiate is not given and all recipientInfo are tried out.

    The old behaviour can be re-enabled in the CMS code by setting the
    CMS_DEBUG_DECRYPT flag.

    Reviewed-by: Matt Caswell &lt;matt@openssl.org&gt;
    (Merged from https://github.com/openssl/openssl/pull/9777)

    (cherry picked from commit 5840ed0cd1e6487d247efbc1a04136a41d7b3a37)
</content>
</entry>
<entry>
<title>Provide a local version of X509_get0_subject_key_id()</title>
<updated>2019-08-12T18:13:13+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2019-08-12T18:13:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ec1073627f94774923660f4ee69df060acd2c9e0'/>
<id>urn:sha1:ec1073627f94774923660f4ee69df060acd2c9e0</id>
<content type='text'>
It seems that the CMS code is currently the only code in existence that
uses this function.
</content>
</entry>
</feed>
