<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/ec, branch libressl-v3.9.2</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=libressl-v3.9.2</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=libressl-v3.9.2'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2024-01-04T17:01:26+00:00</updated>
<entry>
<title>Replace .pkey_base_id with a .base_method pointer</title>
<updated>2024-01-04T17:01:26+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-01-04T17:01:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9f1cd2582409ac5778c5a0e28dfb77f18d122c98'/>
<id>urn:sha1:9f1cd2582409ac5778c5a0e28dfb77f18d122c98</id>
<content type='text'>
Every EVP_PKEY_ASN1_METHOD is either an ASN.1 method or an alias.
As such it resolves to an underlying ASN.1 method (in one step).
This information can be stored in a base_method pointer in allusion
to the pkey_base_id, which is the name for the nid (aka pkey_id aka
type) of the underlying method.

For an ASN.1 method, the base method is itself, so the base method
is set as a pointer to itself. For an alias it is of course a pointer
to the underlying method. Then obviously ameth-&gt;pkey_base_id is the
same as ameth-&gt;base_method-&gt;pkey_id, so rework all ASN.1 methods to
follow that.

ok jsing
</content>
</entry>
<entry>
<title>eckey: adjust some variable names and unwrap function definitions</title>
<updated>2023-12-29T18:49:06+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-12-29T18:49:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=e50518a9a1aa677e1d49d4309c8e4d4d9be0454e'/>
<id>urn:sha1:e50518a9a1aa677e1d49d4309c8e4d4d9be0454e</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>Clean up old_ec_priv_decode()</title>
<updated>2023-12-29T18:48:25+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-12-29T18:48:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3262e60f08c7a7c0605da1f73e684c0ff6a43c4c'/>
<id>urn:sha1:3262e60f08c7a7c0605da1f73e684c0ff6a43c4c</id>
<content type='text'>
As per usual. Stylistic adjustments and missing error check.

ok jsing
</content>
</entry>
<entry>
<title>Clean up eckey_param_decode()</title>
<updated>2023-12-29T18:47:47+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-12-29T18:47:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3b9ef26e3354193b8139f526e3350d30b751d1f9'/>
<id>urn:sha1:3b9ef26e3354193b8139f526e3350d30b751d1f9</id>
<content type='text'>
This aligns eckey's parameter decoding routine with the one of other
cipher abstractions: better variable names, single exit and add missing
check for EVP_PKEY_assign_EC_KEY().

ok jsing
</content>
</entry>
<entry>
<title>Rework eckey_priv_decode()</title>
<updated>2023-12-29T18:46:24+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-12-29T18:46:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=daac9ac8c298b481db05bf3ee249b871385f2a4d'/>
<id>urn:sha1:daac9ac8c298b481db05bf3ee249b871385f2a4d</id>
<content type='text'>
Factor out the pubkey computation and bring it into more sensible form.
This removes lots of pointless setting of errors (twice) and makes the
code a bit easier on the eyes. Other than that perform some stylistic
cleanup like single exit and add an error check for EVP_PKEY_assign().

ok jsing
</content>
</entry>
<entry>
<title>Move a call to X509_ALGOR_get0() down a line</title>
<updated>2023-12-29T18:45:39+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-12-29T18:45:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5218d2b40b3ebc8e390ec1c40a2323ecf21637dd'/>
<id>urn:sha1:5218d2b40b3ebc8e390ec1c40a2323ecf21637dd</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>Ignore ENGINE at the API boundary</title>
<updated>2023-11-29T21:35:57+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-11-29T21:35:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=69bbc5fea4f411f0c0033ecb0fc5126c895ea82a'/>
<id>urn:sha1:69bbc5fea4f411f0c0033ecb0fc5126c895ea82a</id>
<content type='text'>
This removes the remaining ENGINE members from various internal structs
and functions. Any ENGINE passed into a public API is now completely
ignored functions returning an ENGINE always return NULL.

ok jsing
</content>
</entry>
<entry>
<title>ec_print.c: Unwrap a line</title>
<updated>2023-11-21T22:17:15+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-11-21T22:17:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d70ee69e488e1db0b2efc252f1a6959943bfcacc'/>
<id>urn:sha1:d70ee69e488e1db0b2efc252f1a6959943bfcacc</id>
<content type='text'>
</content>
</entry>
</feed>
