<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/kdf/hkdf_evp.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-21T03:53:20+00:00</updated>
<entry>
<title>Add NULL checks to HKDF and TLS1-PRF EVP_PKEY cleanup functions</title>
<updated>2025-05-21T03:53:20+00:00</updated>
<author>
<name>kenjiro</name>
<email></email>
</author>
<published>2025-05-21T03:53:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=4db1ecb865af08af076b8b5a429aee1f1f7d64ec'/>
<id>urn:sha1:4db1ecb865af08af076b8b5a429aee1f1f7d64ec</id>
<content type='text'>
Check if ctx-&gt;data is NULL before calling freezero(). Also add
HKDF and TLS1-PRF to the EVP_PKEY cleanup regression test, as
they no longer crash with this change.

ok tb@
</content>
</entry>
<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>Adjust EVP_PKEY_CTRL_HKDF_KEY to OpenSSL's semantics</title>
<updated>2023-06-26T08:57:17+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-06-26T08:57:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=36dc6e3bd638a341fcee604245bf23d1c02bfd13'/>
<id>urn:sha1:36dc6e3bd638a341fcee604245bf23d1c02bfd13</id>
<content type='text'>
For some reason there is no NULL check on setting the HKDF key for p2 like
in the other cases in the switch, instead OpenSSL fail in memdup, nulling
out the key but leaving he key_len at the old value. This looks accidental
but our behavior makes some haproxy regress tests segfault. So mimic weird
OpenSSL semantics but in addition set the key_len to 0.

Reported by Ilya Shipitsin

ok jsing
</content>
</entry>
<entry>
<title>Make internal header file names consistent</title>
<updated>2022-11-26T16:08:57+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-11-26T16:08:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=81d98bf600a381a625eb11b39a725b08c0ba547f'/>
<id>urn:sha1:81d98bf600a381a625eb11b39a725b08c0ba547f</id>
<content type='text'>
Libcrypto currently has a mess of *_lcl.h, *_locl.h, and *_local.h names
used for internal headers. Move all these headers we inherited from
OpenSSL to *_local.h, reserving the name *_internal.h for our own code.
Similarly, move dtls_locl.h and ssl_locl.h to dtls_local and ssl_local.h.
constant_time_locl.h is moved to constant_time.h since it's special.

Adjust all .c files in libcrypto, libssl and regress.

The diff is mechanical with the exception of tls13_quic.c, where
#include &lt;ssl_locl.h&gt; was fixed manually.

discussed with jsing,
no objection bcook
</content>
</entry>
<entry>
<title>Simplify: freezero() is NULL safe; assign + test in one go, as usual.</title>
<updated>2022-05-05T19:48:06+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-05-05T19:48:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d072cbaedff238f7a1e016236e14e0e7313fef3d'/>
<id>urn:sha1:d072cbaedff238f7a1e016236e14e0e7313fef3d</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>Avoid malloc(0) in EVP_PKEY_CTX_set1_hkdf_key()</title>
<updated>2022-05-05T19:46:36+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-05-05T19:46:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=0338871aa5eff66214a0f284df81dfe5baafad7f'/>
<id>urn:sha1:0338871aa5eff66214a0f284df81dfe5baafad7f</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>Securely wipe the entire HKDF_PKEY_CTX instead of only taking care of</title>
<updated>2022-05-05T19:44:23+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-05-05T19:44:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a84cfd259de5c815a6c6d613e60253d77508a3c1'/>
<id>urn:sha1:a84cfd259de5c815a6c6d613e60253d77508a3c1</id>
<content type='text'>
a piece of the embedded info array.

ok jsing
</content>
</entry>
<entry>
<title>Fix argument order in HKDF and HKDF_extract().</title>
<updated>2022-05-05T11:26:36+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-05-05T11:26:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=14561e7c4537eee9ff1f86cc079c74e822b7b9e0'/>
<id>urn:sha1:14561e7c4537eee9ff1f86cc079c74e822b7b9e0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Translate from OpenSSL's HKDF API to BoringSSL API.</title>
<updated>2022-05-05T08:14:14+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-05-05T08:14:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=149b492e15288179d8f101949dca107977777b6b'/>
<id>urn:sha1:149b492e15288179d8f101949dca107977777b6b</id>
<content type='text'>
ok beck jsing
</content>
</entry>
<entry>
<title>Remove function codes from errors, i.e., KDFerr(A, B) -&gt; KDFerror(B)</title>
<updated>2022-05-05T08:10:39+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-05-05T08:10:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ac804b13a0170f8d542def4ecbb8e895200eafbd'/>
<id>urn:sha1:ac804b13a0170f8d542def4ecbb8e895200eafbd</id>
<content type='text'>
ok beck jsing
</content>
</entry>
</feed>
