<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/dh, 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-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>kill gross whitespace</title>
<updated>2024-01-01T16:01:48+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-01-01T16:01:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=e4fbd68db1b791490c43f96946a1bbfcdcacdc35'/>
<id>urn:sha1:e4fbd68db1b791490c43f96946a1bbfcdcacdc35</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rework pkey_dh_paramgen()</title>
<updated>2023-12-28T22:10:33+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-12-28T22:10:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=21e1a561a34dd3ca9187fdb5a57a025864d3a115'/>
<id>urn:sha1:21e1a561a34dd3ca9187fdb5a57a025864d3a115</id>
<content type='text'>
Similar to pkey_rsa_paramgen() this function does some strange dances
with the pkey_gencb and initialization plus missing error checks. Fix
all that and use the idiom established in previous commits.

ok jsing
</content>
</entry>
<entry>
<title>Rework pkey_dh_keygen()</title>
<updated>2023-12-28T22:06:41+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-12-28T22:06:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f17548a214654a2b6d13345be9dd4218a9a20182'/>
<id>urn:sha1:f17548a214654a2b6d13345be9dd4218a9a20182</id>
<content type='text'>
Single exit, fix error checking and hold on to the DH by keeping a
reference. In other words, switch from EVP_PKEY_assign() to using
EVP_PKEY_set1_DH() and free unconditionally in the error path.

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>fix whitespace</title>
<updated>2023-08-13T12:09:14+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-08-13T12:09:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9ed4ae0e8bb57718bff8370d5629f36660774ee7'/>
<id>urn:sha1:9ed4ae0e8bb57718bff8370d5629f36660774ee7</id>
<content type='text'>
</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>Simplify and unify missing_parameters() for DH and DSA</title>
<updated>2023-08-12T07:43:48+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-08-12T07:43:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ca959b67a4d1cc2713bf6ef88288116f17fcc8cc'/>
<id>urn:sha1:ca959b67a4d1cc2713bf6ef88288116f17fcc8cc</id>
<content type='text'>
ok jsing
</content>
</entry>
</feed>
