<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/cms/cms_smime.c, branch OPENBSD_6_8_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_6_8_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_6_8_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2019-10-04T18:03:56+00:00</updated>
<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>Use ERR_asprintf_error_data() instead of ERR_add_error_data().</title>
<updated>2019-08-11T14:51:15+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2019-08-11T14:51:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=babb0afaef354531f817f375069c37e12794eaa9'/>
<id>urn:sha1:babb0afaef354531f817f375069c37e12794eaa9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Convert CMSerr() to CMSerror().</title>
<updated>2019-08-11T10:38:27+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2019-08-11T10:38:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f7a527513ace17b70b14f3975dd212ba42e464c8'/>
<id>urn:sha1:f7a527513ace17b70b14f3975dd212ba42e464c8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Unlike OpenSSL we do not have our own special ssize_t.</title>
<updated>2019-08-11T06:47:18+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2019-08-11T06:47:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=1504ba97c1e061a5a6aa0dc8d362ec84976c22a0'/>
<id>urn:sha1:1504ba97c1e061a5a6aa0dc8d362ec84976c22a0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>More style(9), whitespace and readability fixes.</title>
<updated>2019-08-10T18:15:52+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2019-08-10T18:15:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=cd017df13ee5f5ba7baa4ffe853ae05106ef3cac'/>
<id>urn:sha1:cd017df13ee5f5ba7baa4ffe853ae05106ef3cac</id>
<content type='text'>
Files are identical once whitespace and newlines are removed.
</content>
</entry>
<entry>
<title>First pass at style(9).</title>
<updated>2019-08-10T16:42:20+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2019-08-10T16:42:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=75125ce1cf513471883fff50db4a4638526bd785'/>
<id>urn:sha1:75125ce1cf513471883fff50db4a4638526bd785</id>
<content type='text'>
Whitespace only and no change according to diff -w.
</content>
</entry>
<entry>
<title>Fix includes for non-installed headers.</title>
<updated>2019-08-10T16:39:17+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2019-08-10T16:39:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5d7053e9dd0807d71499cb4dda1e06eb13a776c9'/>
<id>urn:sha1:5d7053e9dd0807d71499cb4dda1e06eb13a776c9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add $OpenBSD$ tags.</title>
<updated>2019-08-10T16:03:54+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2019-08-10T16:03:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5f53ff9a2d756f84baa35744a9e195a2d5294470'/>
<id>urn:sha1:5f53ff9a2d756f84baa35744a9e195a2d5294470</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restore the original per-file licenses for CMS.</title>
<updated>2019-08-10T16:02:24+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2019-08-10T16:02:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d15bd3c8fe2277fce9e3a9781dc407dab95b9f3a'/>
<id>urn:sha1:d15bd3c8fe2277fce9e3a9781dc407dab95b9f3a</id>
<content type='text'>
These were removed in OpenSSL b1322259d93cf6b6286f9febcd468b6a9f577d91.
</content>
</entry>
<entry>
<title>Work towards supporting Cryptographic Message Syntax (CMS) in libcrypto.</title>
<updated>2019-08-10T15:55:20+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2019-08-10T15:55:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=4df8f2a71206786b2b61d7295a263df61028b550'/>
<id>urn:sha1:4df8f2a71206786b2b61d7295a263df61028b550</id>
<content type='text'>
Cryptographic Message Syntax (CMS) is a standard for cryptographically
protecting messages, as defined in RFC 5652. It is derived from PKCS #7
version 1.5 and utilises various ASN.1 structures, making it complex and
fairly heavyweight. Various protocols - including RPKI (RFC 6480) - have
been built on top of it, which means it is necessary to support CMS, in
order to support RPKI.

This imports around 6,000 lines of code from OpenSSL 1.1.1, which is still
under the original OpenSSL license. Further work will occur in tree.

Requested by and discussed with many.

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