<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/ecdh, branch libressl-v4.1.2</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=libressl-v4.1.2</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=libressl-v4.1.2'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2025-02-17T09:25:45+00:00</updated>
<entry>
<title>Simplify ECDH_size() by using BN_num_bytes()</title>
<updated>2025-02-17T09:25:45+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-02-17T09:25:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c98102f13db7f51c727c6e8e242e1465307788ad'/>
<id>urn:sha1:c98102f13db7f51c727c6e8e242e1465307788ad</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>Remove some unneeded includes from ecdh.c</title>
<updated>2023-07-28T09:31:21+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-28T09:31:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=86a42c7a4efeefbbee301583a417e1b99bbda38d'/>
<id>urn:sha1:86a42c7a4efeefbbee301583a417e1b99bbda38d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Pull up zeroing of out; drop unnecessary check</title>
<updated>2023-07-28T09:30:22+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-28T09:30:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3a8fc985d98583b96821febed38c55c12c23ab01'/>
<id>urn:sha1:3a8fc985d98583b96821febed38c55c12c23ab01</id>
<content type='text'>
Move the zeroing of the output buffer a few lines up and remove an
unnecessary check.

requested/ok jsing
</content>
</entry>
<entry>
<title>Rename buflen to buf_len, use calloc/freezero</title>
<updated>2023-07-28T09:29:24+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-28T09:29:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=4d5b61b05eba83625a41168408b456851f77417a'/>
<id>urn:sha1:4d5b61b05eba83625a41168408b456851f77417a</id>
<content type='text'>
Some cosmetic tweaks in ecdh_compute_key(). Rename buflen to buf_len
to match out_len, use calloc() and freezero().

ok jsing
</content>
</entry>
<entry>
<title>Move KDF handling to ECDH_compute_key()</title>
<updated>2023-07-28T09:28:37+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-28T09:28:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c043ade63ba3d45eacfb953347c00f0988397d9a'/>
<id>urn:sha1:c043ade63ba3d45eacfb953347c00f0988397d9a</id>
<content type='text'>
In OpenSSL e2285d87, the KDF handling was moved from the compute_key()
method into the public API. A consequence of this change is that the
ECDH_compute_key() API no longer returns -1 for some errors. Existing
checks for &lt;= 0 are safe as are those checking for the exact length as
return value, which is all what the ecosystem seems to be doing.

ok jsing
</content>
</entry>
<entry>
<title>Merge ecdh.h into ec.h</title>
<updated>2023-07-28T09:25:12+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-28T09:25:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2d27f5ba745b8f5de6e3e827829699607f11a54f'/>
<id>urn:sha1:2d27f5ba745b8f5de6e3e827829699607f11a54f</id>
<content type='text'>
The remaining two ECDH interfaces are relocated into ec.h. ecdh.h
remains. It does nothing but include ec.h.

ok jsing
</content>
</entry>
<entry>
<title>Excise ECDH_METHOD</title>
<updated>2023-07-28T09:22:26+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-28T09:22:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d5a81d6e35ae60f515d5705afb9c2f871823721a'/>
<id>urn:sha1:d5a81d6e35ae60f515d5705afb9c2f871823721a</id>
<content type='text'>
Unlike ECDSA_METHOD, this has been unused forever but kind of needed to
stay for symmetry with ECDSA_METHOD. Now we can finally take it behind
the barn and remove its tendrils into ENGINE.

ok jsing
</content>
</entry>
<entry>
<title>Remove ECDH errors</title>
<updated>2023-07-28T09:19:59+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-28T09:19:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a90aeb58faecc32cf7d4158977677efa3db85477'/>
<id>urn:sha1:a90aeb58faecc32cf7d4158977677efa3db85477</id>
<content type='text'>
Much like the ECDSA errors, the ECDH errors have been unused for a
while. Garbage collect them.

ok jsing
</content>
</entry>
<entry>
<title>Fix two EC_POINT_is_on_curve() checks</title>
<updated>2023-07-24T17:08:53+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-24T17:08:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c2fc234286c75d942a62891333f85e824d615444'/>
<id>urn:sha1:c2fc234286c75d942a62891333f85e824d615444</id>
<content type='text'>
This API can fail for various reasons, in which case it returns -1, so
you need to check if (EC_POINT_is_on_curve_checks(...) &lt;= 0).

ok miod
</content>
</entry>
<entry>
<title>Revert accidental addition of cofactor ECDH support</title>
<updated>2023-07-12T08:54:18+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-12T08:54:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=efa15ee1c4f122ae67998dd88bdd8ac06e697206'/>
<id>urn:sha1:efa15ee1c4f122ae67998dd88bdd8ac06e697206</id>
<content type='text'>
This snuck in with ech_key.c r1.33 because I committed from a dirty tree.
</content>
</entry>
</feed>
