<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/cms/cms_lcl.h, 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>Switch ASN.1 INT32 back to LONG.</title>
<updated>2019-08-11T10:26:04+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2019-08-11T10:26:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=36509464f71e4876798f5e8cf8060f48bd0c6a69'/>
<id>urn:sha1:36509464f71e4876798f5e8cf8060f48bd0c6a69</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Expand ASN.1 macros.</title>
<updated>2019-08-11T10:15:30+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2019-08-11T10:15:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=60fde5b08bfa39912d4423961b374ab94e5c325e'/>
<id>urn:sha1:60fde5b08bfa39912d4423961b374ab94e5c325e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>We use DECLARE_STACK_OF rather than DEFINE_STACK_OF.</title>
<updated>2019-08-11T08:15:27+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2019-08-11T08:15:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=162996edf50591f53ad0e453ec26c6a86c385659'/>
<id>urn:sha1:162996edf50591f53ad0e453ec26c6a86c385659</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix style(9) and whitespace.</title>
<updated>2019-08-10T18:27:49+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2019-08-10T18:27:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a1b36756aaebda315e1da2654bfa352b4aa458c9'/>
<id>urn:sha1:a1b36756aaebda315e1da2654bfa352b4aa458c9</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>
<entry>
<title>Remove cms.</title>
<updated>2016-09-04T17:55:28+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2016-09-04T17:55:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f241743894147029e418ff36ff91f2216f0dd756'/>
<id>urn:sha1:f241743894147029e418ff36ff91f2216f0dd756</id>
<content type='text'>
ok beck@, guenther@, tedu@
</content>
</entry>
<entry>
<title>tags as requested by miod and tedu</title>
<updated>2014-06-12T15:49:31+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>2014-06-12T15:49:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=59f4f2c61d71e266d37dd2fc97615b3fd35b4721'/>
<id>urn:sha1:59f4f2c61d71e266d37dd2fc97615b3fd35b4721</id>
<content type='text'>
</content>
</entry>
</feed>
