<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/ec/ec_err.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-09-29T10:09:09+00:00</updated>
<entry>
<title>If a NULL or zero cofactor is passed to EC_GROUP_set_generator(),</title>
<updated>2019-09-29T10:09:09+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2019-09-29T10:09:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5d19ba5fbb605cdab0233383db708bad870da750'/>
<id>urn:sha1:5d19ba5fbb605cdab0233383db708bad870da750</id>
<content type='text'>
try to compute it using Hasse's bound.  This works as long as the
cofactor is small enough.

Port of Brumley's fix for CVE-2019-1547 in OpenSSL 1.1.1 (old license)

tests &amp; ok inoguchi
input &amp; ok jsing

commit 30c22fa8b1d840036b8e203585738df62a03cec8
Author: Billy Brumley &lt;bbrumley@gmail.com&gt;
Date:   Thu Sep 5 21:25:37 2019 +0300

    [crypto/ec] for ECC parameters with NULL or zero cofactor, compute it

    The cofactor argument to EC_GROUP_set_generator is optional, and SCA
    mitigations for ECC currently use it. So the library currently falls
    back to very old SCA-vulnerable code if the cofactor is not present.

    This PR allows EC_GROUP_set_generator to compute the cofactor for all
    curves of cryptographic interest. Steering scalar multiplication to more
    SCA-robust code.

    This issue affects persisted private keys in explicit parameter form,
    where the (optional) cofactor field is zero or absent.

    It also affects curves not built-in to the library, but constructed
    programatically with explicit parameters, then calling
    EC_GROUP_set_generator with a nonsensical value (NULL, zero).

    The very old scalar multiplication code is known to be vulnerable to
    local uarch attacks, outside of the OpenSSL threat model. New results
    suggest the code path is also vulnerable to traditional wall clock
    timing attacks.

    CVE-2019-1547

    Reviewed-by: Matt Caswell &lt;matt@openssl.org&gt;
    Reviewed-by: Tomas Mraz &lt;tmraz@fedoraproject.org&gt;
    Reviewed-by: Nicola Tuveri &lt;nic.tuv@gmail.com&gt;
    (Merged from https://github.com/openssl/openssl/pull/9781)
</content>
</entry>
<entry>
<title>Add various macros and controls for EC_PKEY_CTX.</title>
<updated>2019-09-06T17:59:25+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2019-09-06T17:59:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=428d94e41ffb941e459939409f837aa7a3ab188c'/>
<id>urn:sha1:428d94e41ffb941e459939409f837aa7a3ab188c</id>
<content type='text'>
These are needed for the upcoming EC CMS support (nothing else appears
to use them). This largely syncs our ec_pmeth.c with OpenSSL 1.1.1b.

With input from inoguchi@ and tb@.

ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>Send the function codes from the error functions to the bit bucket,</title>
<updated>2017-01-29T17:49:23+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2017-01-29T17:49:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d1f47bd292f36094480caa49ada36b99a69c59b0'/>
<id>urn:sha1:d1f47bd292f36094480caa49ada36b99a69c59b0</id>
<content type='text'>
as was done earlier in libssl. Thanks inoguchi@ for noticing
libssl had more reacharounds into this.
ok jsing@ inoguchi@
</content>
</entry>
<entry>
<title>Explicitly include &lt;openssl/opensslconf.h&gt; in every file that references</title>
<updated>2014-07-10T22:45:58+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2014-07-10T22:45:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=62348213609ef233110561d1a6ed67ad66df1c7e'/>
<id>urn:sha1:62348213609ef233110561d1a6ed67ad66df1c7e</id>
<content type='text'>
an OPENSSL_NO_* define. This avoids relying on something else pulling it
in for us, plus it fixes several cases where the #ifndef OPENSSL_NO_XYZ is
never going to do anything, since OPENSSL_NO_XYZ will never defined, due
to the fact that opensslconf.h has not been included.

This also includes some miscellaneous sorting/tidying of headers.
</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>
<entry>
<title>knf approximation</title>
<updated>2014-05-06T03:56:27+00:00</updated>
<author>
<name>tedu</name>
<email></email>
</author>
<published>2014-05-06T03:56:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c2b0a5b291b1d1b64627e62f53d37965185d466f'/>
<id>urn:sha1:c2b0a5b291b1d1b64627e62f53d37965185d466f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>resolve conflicts</title>
<updated>2012-10-13T21:25:14+00:00</updated>
<author>
<name>djm</name>
<email></email>
</author>
<published>2012-10-13T21:25:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=942650cdef05a877200cb7aff3a075935a5fd0cd'/>
<id>urn:sha1:942650cdef05a877200cb7aff3a075935a5fd0cd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>resolve conflicts, fix local changes</title>
<updated>2010-10-01T22:59:01+00:00</updated>
<author>
<name>djm</name>
<email></email>
</author>
<published>2010-10-01T22:59:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8922d4bc4a8b8893d72a48deb2cdf58215f98505'/>
<id>urn:sha1:8922d4bc4a8b8893d72a48deb2cdf58215f98505</id>
<content type='text'>
</content>
</entry>
<entry>
<title>resolve conflicts</title>
<updated>2008-09-06T12:17:54+00:00</updated>
<author>
<name>djm</name>
<email></email>
</author>
<published>2008-09-06T12:17:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=6b62d1fdd8a4fd35acfcc0c4bb1bf8b757fa8cda'/>
<id>urn:sha1:6b62d1fdd8a4fd35acfcc0c4bb1bf8b757fa8cda</id>
<content type='text'>
</content>
</entry>
<entry>
<title>resolve conflicts</title>
<updated>2006-06-27T05:07:03+00:00</updated>
<author>
<name>djm</name>
<email></email>
</author>
<published>2006-06-27T05:07:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=7fe7e1ed6bcd0e342aed7c0f890962dda616aa0d'/>
<id>urn:sha1:7fe7e1ed6bcd0e342aed7c0f890962dda616aa0d</id>
<content type='text'>
</content>
</entry>
</feed>
