<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/ec/ec.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-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>Partial port of EC_KEY_METHOD from OpenSSL 1.1.</title>
<updated>2019-01-19T01:17:41+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2019-01-19T01:17:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=e703f4ea1718542db072958b64181b462187d8ba'/>
<id>urn:sha1:e703f4ea1718542db072958b64181b462187d8ba</id>
<content type='text'>
Pass const method to EC_KEY_METHOD_get_*() to get rid
of an XXX.

from markus
</content>
</entry>
<entry>
<title>Partial port of EC_KEY_METHOD from OpenSSL 1.1.</title>
<updated>2019-01-19T01:12:48+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2019-01-19T01:12:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a8a1d0862b279d5f1d505fa305718acb94730824'/>
<id>urn:sha1:a8a1d0862b279d5f1d505fa305718acb94730824</id>
<content type='text'>
This commit adds missing API for ECDH/ECDSA_verify.

from markus
</content>
</entry>
<entry>
<title>Partial port of EC_KEY_METHOD from OpenSSL 1.1.</title>
<updated>2019-01-19T01:07:00+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2019-01-19T01:07:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=aa769d92fad41004606a446424dde716784d7854'/>
<id>urn:sha1:aa769d92fad41004606a446424dde716784d7854</id>
<content type='text'>
This commit adds init/free, support for signing, setting and
getting the method, engine support as well as extra data.

from markus
</content>
</entry>
<entry>
<title>Add a const qualifier to the 'key' argument of i2o_ECPublicKey() and</title>
<updated>2018-05-19T10:37:02+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2018-05-19T10:37:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ebcd9413cf5a196f715422cc604ef2765ab8ecc2'/>
<id>urn:sha1:ebcd9413cf5a196f715422cc604ef2765ab8ecc2</id>
<content type='text'>
one to the last argument of each one of i2s_ASN1_OCTET_STRING(),
s2i_ASN1_OCTET_STRING(), i2s_ASN1_INTEGER(), i2s_ASN1_ENUMERATED(),
and i2s_ASN1_ENUMERATED_TABLE().

tested in a bulk build by sthen
ok jsing
</content>
</entry>
<entry>
<title>Add assembler code for the nist 256-bit GFp curve, written initially by</title>
<updated>2016-11-04T17:33:20+00:00</updated>
<author>
<name>miod</name>
<email></email>
</author>
<published>2016-11-04T17:33:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c25bd6f14a47d7516c4d4e740952129f29e02a36'/>
<id>urn:sha1:c25bd6f14a47d7516c4d4e740952129f29e02a36</id>
<content type='text'>
Intel. Obtained from BoringSSL, with some integration work borrowed from
OpenSSL 1.0.2; assembler code for arm and sparc64 borrowed from OpenSSL 1.1.0.

None of this code is enabled in libcrypto yet.

ok beck@ jsing@
</content>
</entry>
<entry>
<title>Convert ECParameters_dup() from a macro that uses ASN1_dup_of() into an</title>
<updated>2015-10-13T15:25:18+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2015-10-13T15:25:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=806c5b40bbd3b0ebf4c6dc188e025d4d442a4d33'/>
<id>urn:sha1:806c5b40bbd3b0ebf4c6dc188e025d4d442a4d33</id>
<content type='text'>
actual function. This removes the last ASN1_dup_of usage from the tree.

Feedback from doug@ and miod@
</content>
</entry>
<entry>
<title>Provide EC_curve_nid2nist() and EC_curve_nist2nid().</title>
<updated>2015-06-20T13:26:08+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2015-06-20T13:26:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f0a26ed4eda985998a75328b19008d031dc9b65f'/>
<id>urn:sha1:f0a26ed4eda985998a75328b19008d031dc9b65f</id>
<content type='text'>
From OpenSSL.

Rides libcrypto bump.

ok miod@ (a while ago)
</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>
