<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/dh, branch libressl-v3.5.3</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=libressl-v3.5.3</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=libressl-v3.5.3'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2022-01-20T11:00:34+00:00</updated>
<entry>
<title>Add check for BIO_indent return value</title>
<updated>2022-01-20T11:00:34+00:00</updated>
<author>
<name>inoguchi</name>
<email></email>
</author>
<published>2022-01-20T11:00:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=aa385c25ced0d9d497e76952f1c22ff02913b0d8'/>
<id>urn:sha1:aa385c25ced0d9d497e76952f1c22ff02913b0d8</id>
<content type='text'>
CID 24812

ok jsing@ millert@ tb@
</content>
</entry>
<entry>
<title>Make structs in dh.h opaque</title>
<updated>2022-01-14T08:25:44+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-01-14T08:25:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b750ed61cefe91940dce870088adff3ad6857d34'/>
<id>urn:sha1:b750ed61cefe91940dce870088adff3ad6857d34</id>
<content type='text'>
This moves the struct internals for DH and DH_METHOD to dh_local.h.

ok inoguchi jsing
</content>
</entry>
<entry>
<title>Unifdef LIBRESSL_OPAQUE_* and LIBRESSL_NEXT_API</title>
<updated>2022-01-14T07:49:49+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-01-14T07:49:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=82ec18edf4e632f36b6f79c239fdb6961d421a82'/>
<id>urn:sha1:82ec18edf4e632f36b6f79c239fdb6961d421a82</id>
<content type='text'>
This marks the start of major surgery in libcrypto. Do not attempt to
build the tree for a while (~50 commits).
</content>
</entry>
<entry>
<title>Prepare to provide EVP_PKEY_{public,param}_check</title>
<updated>2022-01-10T12:10:26+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-01-10T12:10:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=875eb616f98cd0720501dc97ee72ed96343b0b33'/>
<id>urn:sha1:875eb616f98cd0720501dc97ee72ed96343b0b33</id>
<content type='text'>
This implements checking of a public key and of key generation
parameters for DH and EC keys. With the same logic and setters
and const quirks as for EVP_PKEY_check().

There are a couple of quirks: For DH no default EVP_PKEY_check()
is implemented, instead EVP_PKEY_param_check() calls DH_check_ex()
even though DH_param_check_ex() was added for this purpose.
EVP_PKEY_public_check() for EC curves also checks the private key
if present.

ok inoguchi jsing
</content>
</entry>
<entry>
<title>Provide DH_check*_ex and many error codes</title>
<updated>2022-01-10T12:00:52+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-01-10T12:00:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=7f7aefb469a9916b1d914a9fabaed99bb909ef8d'/>
<id>urn:sha1:7f7aefb469a9916b1d914a9fabaed99bb909ef8d</id>
<content type='text'>
DH_check{,_pub_key}_ex() wrap their non-ex versions to translate
the flags argument of the original functions into OpenSSL errors.
For this almost a dozen new error codes need to be added.

DH_params_check{,_ex}() is a new version of DH_check that only
performs a cheap subset of the checks.

They are needed to implement EVP_PKEY_{public,param}_check()
(observe the consistent naming) although the actual implementation
of EVP_PKEY_param_check() chose to use DH_check_ex().

As far as I can tell, the only raison d'être of the _ex functions
and error codes is to spew them to stderr in a couple of openssl(1)
commands. This couldn't have been solved differently...

These functions will not be exposed publicly.

ok inoguchi jsing
</content>
</entry>
<entry>
<title>zap trailing whitespace</title>
<updated>2022-01-10T00:09:06+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-01-10T00:09:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=be9e6959fcd7a339f12f1570a179ccf30f61d5fe'/>
<id>urn:sha1:be9e6959fcd7a339f12f1570a179ccf30f61d5fe</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add an essentially empty dh_local.h and include it in the files where</title>
<updated>2022-01-07T09:27:13+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-01-07T09:27:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=01c3a3efcb3377bc530d4bf225668754e137d085'/>
<id>urn:sha1:01c3a3efcb3377bc530d4bf225668754e137d085</id>
<content type='text'>
it will be needed in the upcoming bump.

discussed with jsing
</content>
</entry>
<entry>
<title>zap trailing whitespace</title>
<updated>2022-01-07T09:21:21+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-01-07T09:21:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=53b1ddcbe1030b90b0333d87f7533b35223ff685'/>
<id>urn:sha1:53b1ddcbe1030b90b0333d87f7533b35223ff685</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Prepare to provide DH_get_length()</title>
<updated>2022-01-05T20:36:29+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-01-05T20:36:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f992cb63006da330693066680a3b9f75b7f89c89'/>
<id>urn:sha1:f992cb63006da330693066680a3b9f75b7f89c89</id>
<content type='text'>
Will be needed by openssl(1) dhparam.

ok inoguchi jsing
</content>
</entry>
<entry>
<title>Prepare to provide DH_get0_{p,q,g,{priv,pub}_key}()</title>
<updated>2022-01-05T20:30:16+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-01-05T20:30:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=4b01248e7e4ed4563469c44b88e2650622a0c5a7'/>
<id>urn:sha1:4b01248e7e4ed4563469c44b88e2650622a0c5a7</id>
<content type='text'>
These are accessors that allow getting one specific DH member. They are
less error prone than the current getters DH_get0_{pqg,key}(). They
are used by many ports and will also be used in base for this reason.

Who can remember whether the pub_key or the priv_key goes first in
DH_get0_key()?

ok inoguchi jsing
</content>
</entry>
</feed>
