<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/ec/ec_pmeth.c, branch OPENBSD_7_9_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2025-05-10T05:54:39+00:00</updated>
<entry>
<title>Use err_local.h rather than err.h in most places</title>
<updated>2025-05-10T05:54:39+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-05-10T05:54:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=41e8f99dd1625a9f0c80ce9d4383e95b18e85709'/>
<id>urn:sha1:41e8f99dd1625a9f0c80ce9d4383e95b18e85709</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>pkey_ec_derive: fix call to ECDH_compute_key()</title>
<updated>2025-03-13T10:39:51+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-03-13T10:39:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=496f9bc849b86c6d78029441fca5894a030c1798'/>
<id>urn:sha1:496f9bc849b86c6d78029441fca5894a030c1798</id>
<content type='text'>
The last argument is a pointer to the KDF, so use NULL, not 0.
</content>
</entry>
<entry>
<title>pkey_ec_derive(): simplify keylen calculation</title>
<updated>2025-02-18T06:31:10+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-02-18T06:31:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=58e5af00b0d553c026516b6b273efa0f7415091f'/>
<id>urn:sha1:58e5af00b0d553c026516b6b273efa0f7415091f</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>Move BIGNUMs in EC_GROUP and EC_POINT to the heap</title>
<updated>2025-01-05T16:07:08+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-01-05T16:07:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=26c9248a10bd0d95f47397e21bc2f056e53e19c8'/>
<id>urn:sha1:26c9248a10bd0d95f47397e21bc2f056e53e19c8</id>
<content type='text'>
The only way to get an EC_GROUP or an EC_POINT is by calling the relevant
_new() function and to get rid of it, something must call _free(). Thus we
can establish the invariant that every group has Weierstrass coefficients
p, a, b as well as order and cofactor hanging off it. Similarly, Every
point has allocated BIGNUMs for its Jacobian projective coordinates.

Unfortunately, a group has the generator as an optional component in
addition to seed and montgomery context/one (where optionality makes
more sense).

This is a mostly mechanical diff and only drops a few silly comments and
a couple of unnecessary NULL checks since in our part of the wrold the
word invariant has a meaning.

This should also appease Coverity who likes to throw fits at calling
BN_free() for BIGNUM on the stack (yes, this is actually a thing).

ok jsing
</content>
</entry>
<entry>
<title>Make ec EVP_PKEY_CTRL_MD handler match dsa/rsa more closely</title>
<updated>2024-10-19T14:41:03+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-10-19T14:41:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8dd950d2b23ed959f63456beaee1e4a2a0f7c5af'/>
<id>urn:sha1:8dd950d2b23ed959f63456beaee1e4a2a0f7c5af</id>
<content type='text'>
This makes the thing a bit easier on the eyes and improves greppability.

ok joshua jsing
</content>
</entry>
<entry>
<title>replace atoi(3) usage with strtonum(3); ok/tweaks tb@</title>
<updated>2024-08-26T22:01:28+00:00</updated>
<author>
<name>op</name>
<email></email>
</author>
<published>2024-08-26T22:01:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=07d3f305ea24da68aec66c7e4be39317f6ea7dae'/>
<id>urn:sha1:07d3f305ea24da68aec66c7e4be39317f6ea7dae</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Clean up pkey_ec_paramgen()</title>
<updated>2023-12-28T22:12:37+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-12-28T22:12:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9b9639b4856edf75d560e1fd5e1c572614e608da'/>
<id>urn:sha1:9b9639b4856edf75d560e1fd5e1c572614e608da</id>
<content type='text'>
This is basically the same as the dh and dsa version, except it's
different because it's EC. Single exit, uniform error checking.
"Plug" another leak.

With this I earned another shining turd for my collection.

ok jsing
</content>
</entry>
<entry>
<title>Fix pkey_ec_keygen()</title>
<updated>2023-12-28T22:09:10+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-12-28T22:09:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=1707467999f37bd7855f698bf94befe0b33c1a53'/>
<id>urn:sha1:1707467999f37bd7855f698bf94befe0b33c1a53</id>
<content type='text'>
The EC code came later, and people got better at writing terrible code.
In this case, they could remain quite close to what they copy-pasted
from DH, so it was relatively straightforward (for once). There's only
one slight extra twist and that's easily dealt with.

ok jsing
</content>
</entry>
<entry>
<title>Stop including ecdsa.h and ecdh.h internally</title>
<updated>2023-07-28T15:50:33+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-28T15:50:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=dee6ca6302cdbd5982c40288832f1fbe51d045d5'/>
<id>urn:sha1:dee6ca6302cdbd5982c40288832f1fbe51d045d5</id>
<content type='text'>
These headers are now reduced to #include &lt;openssl/ec.h&gt; and are provided
for compatiblity only. There's no point in using them. At the same time
garbage collect the last uses of OPENSSL_NO_{ECDSA,ECDH} in our tree.

ok jsing
</content>
</entry>
<entry>
<title>Stop including ech_local.h</title>
<updated>2023-06-25T19:26:04+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-06-25T19:26:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=0497f3895ade6dcbddfa29af12e57ac2253aa196'/>
<id>urn:sha1:0497f3895ade6dcbddfa29af12e57ac2253aa196</id>
<content type='text'>
</content>
</entry>
</feed>
