<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/dsa, branch libressl-v3.9.1</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=libressl-v3.9.1</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=libressl-v3.9.1'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2024-03-02T09:33:14+00:00</updated>
<entry>
<title>Remove DSA_generate_parameters</title>
<updated>2024-03-02T09:33:14+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-03-02T09:33:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=dd733fbf4aedf12a61eb3281cf9aba872ad4bf86'/>
<id>urn:sha1:dd733fbf4aedf12a61eb3281cf9aba872ad4bf86</id>
<content type='text'>
This was deprecated in 0.9.8 and used until recently by rust-openssl
and by keynote (keynote has the excuse that it was written before the
deprecation). Fortunately Paul Kehrer fixed this in rust-openssl,
so we can garbage collect this turd. (It was replaced with the less
ergonomic DSA_generate_parameters_ex() to expose a new fancy way of
displaying dots, stars and pluses on key generation).

ok jsing
</content>
</entry>
<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>Split ameth arrays into individual methods</title>
<updated>2024-01-04T16:41:56+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-01-04T16:41:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b1aedf2a14d9cd341b6b3b19a90343383ec0209f'/>
<id>urn:sha1:b1aedf2a14d9cd341b6b3b19a90343383ec0209f</id>
<content type='text'>
For some reason DSA, GOST, and RSA had their ASN.1 methods stored in
an array. This is clumsy and the only benefit is that one saves a few
externs in p_lib.c. They were also arranged by ascending NID because
of bsearch() madness.

Split them up and arrange the methods by name, which is much saner
and simpler.

ok jsing
</content>
</entry>
<entry>
<title>Rework pkey_das_paramgen()</title>
<updated>2023-12-28T22:11:26+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-12-28T22:11:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=6dc9e5f983be9febbb25de952e1e5dbcd9ceee4f'/>
<id>urn:sha1:6dc9e5f983be9febbb25de952e1e5dbcd9ceee4f</id>
<content type='text'>
Another copy-paste-then-tweak-and-diverge version of the same old thing.
Fix it the same way as pkey_rsa_paramgen() and pkey_dh_paramgen(). The
callbacks are initialized at the top and the weird error checking is
turned into something much simpler.

ok jsing
</content>
</entry>
<entry>
<title>Rework pkey_dsa_keygen()</title>
<updated>2023-12-28T22:07:23+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-12-28T22:07:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=1a97887b534c60ad7359cc3059cc7de91eab190d'/>
<id>urn:sha1:1a97887b534c60ad7359cc3059cc7de91eab190d</id>
<content type='text'>
Very similar to pkey_dh_keygen(): single exit and hold on to an extra
reference by calling EVP_PKEY_set1_DSA() instead of assigning the DSA
to the pkey. "Fixes" another leak that Coverity missed.

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>Unifdef OPENSSL_NO_ENGINE in libcrypto</title>
<updated>2023-11-19T15:46:10+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-11-19T15:46:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=593d97e74cc873d99aced677883cf55625efe62d'/>
<id>urn:sha1:593d97e74cc873d99aced677883cf55625efe62d</id>
<content type='text'>
This is mechanical apart from a few manual edits to avoid doubled empty
lines.

ok jsing
</content>
</entry>
<entry>
<title>Drop silly int_ prefix from _free() and _size()</title>
<updated>2023-08-12T07:59:48+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-08-12T07:59:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=156606251785f22da3265415907d576d76db2ff6'/>
<id>urn:sha1:156606251785f22da3265415907d576d76db2ff6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Free {priv,pub}_key before assigning to it</title>
<updated>2023-08-12T07:50:47+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-08-12T07:50:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=75d00cb38a793e674ec61e79cfad30c174e5a93c'/>
<id>urn:sha1:75d00cb38a793e674ec61e79cfad30c174e5a93c</id>
<content type='text'>
While it isn't the case for the default implementations, custom DH and DSA
methods could conceivably populate private and public keys, which in turn
would result in leaks in the pub/priv decode methods.

ok jsing
</content>
</entry>
<entry>
<title>Readability tweak for key parameters in DSA</title>
<updated>2023-08-12T07:46:14+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-08-12T07:46:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3ce61e18114b54d6a68b3d52d58caecbb472fe23'/>
<id>urn:sha1:3ce61e18114b54d6a68b3d52d58caecbb472fe23</id>
<content type='text'>
ok jsing
</content>
</entry>
</feed>
