<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/lib/libcrypto/evp/evp_key.c, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/lib/libcrypto/evp/evp_key.c?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/lib/libcrypto/evp/evp_key.c?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2018-08-14T17:59:26Z</updated>
<entry>
<title>Add a comment that explains what the check is doing and why len &gt;= 1.</title>
<updated>2018-08-14T17:59:26Z</updated>
<author>
<name>tb</name>
<email>tb@openbsd.org</email>
</author>
<published>2018-08-14T17:59:26Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=fcb1ddc764b80b71cf03d455c3f375cfb6cdf909'/>
<id>urn:sha1:fcb1ddc764b80b71cf03d455c3f375cfb6cdf909</id>
<content type='text'>
Prompted by a remark by jsing
</content>
</entry>
<entry>
<title>The UI_add_{input,verify}_string() functions want a length not including</title>
<updated>2018-08-14T17:51:36Z</updated>
<author>
<name>tb</name>
<email>tb@openbsd.org</email>
</author>
<published>2018-08-14T17:51:36Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=ddcb65f9746809d209494b262e6a032f4cb86bfe'/>
<id>urn:sha1:ddcb65f9746809d209494b262e6a032f4cb86bfe</id>
<content type='text'>
the terminating NUL. EVP_read_pw_string_min() got this wrong, leading to
a one-byte buffer overrun in all callers of EVP_read_pw_string().

Found by mestre running 'openssl passwd' with MALLOC_OPTIONS including C.

Fix this by doing some basic sanity checking in EVP_read_pw_string_min().
Cap the len argument at BUFSIZ and ensure that min &lt; len as well as
0 &lt;= min and 1 &lt;= len.  The last two checks are important as these
numbers may end up in reallocarray().

ok bcook (on previous version), jsing, mestre
</content>
</entry>
<entry>
<title>Send the function codes from the error functions to the bit bucket,</title>
<updated>2017-01-29T17:49:22Z</updated>
<author>
<name>beck</name>
<email>beck@openbsd.org</email>
</author>
<published>2017-01-29T17:49:22Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=5067ae9f807f8af9e6350e51e6a54619386c06ba'/>
<id>urn:sha1:5067ae9f807f8af9e6350e51e6a54619386c06ba</id>
<content type='text'>
as was done earlier in libssl. Thanks inoguchi@ for noticing
libssl had more reacharounds into this.
ok jsing@ inoguchi@
</content>
</entry>
<entry>
<title>Correct spelling of OPENSSL_cleanse.</title>
<updated>2015-09-10T15:56:24Z</updated>
<author>
<name>jsing</name>
<email>jsing@openbsd.org</email>
</author>
<published>2015-09-10T15:56:24Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=0f777b12ad023193791105beba95cb4fa7d67201'/>
<id>urn:sha1:0f777b12ad023193791105beba95cb4fa7d67201</id>
<content type='text'>
ok miod@
</content>
</entry>
<entry>
<title>EVP_BytesToKey(): return through the error path (which cleans things up)</title>
<updated>2015-02-10T09:55:39Z</updated>
<author>
<name>miod</name>
<email>miod@openbsd.org</email>
</author>
<published>2015-02-10T09:55:39Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=81c3b91145d781c8f8f2a41752357910d4433c0a'/>
<id>urn:sha1:81c3b91145d781c8f8f2a41752357910d4433c0a</id>
<content type='text'>
if EVP_DigestInit_ex() fails.
</content>
</entry>
<entry>
<title>Replace assert() and OPENSSL_assert() calls with proper error return paths.</title>
<updated>2015-02-10T09:52:35Z</updated>
<author>
<name>miod</name>
<email>miod@openbsd.org</email>
</author>
<published>2015-02-10T09:52:35Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=8ad85bf285ce705d205f8dba3343f60dcaff0145'/>
<id>urn:sha1:8ad85bf285ce705d205f8dba3343f60dcaff0145</id>
<content type='text'>
Careful review, feedback &amp; ok doug@ jsing@
</content>
</entry>
<entry>
<title>Correct error checks in EVP_read_pw_string_min(): UI_add_input_string()</title>
<updated>2014-08-06T04:28:21Z</updated>
<author>
<name>guenther</name>
<email>guenther@openbsd.org</email>
</author>
<published>2014-08-06T04:28:21Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=b60d353a6574f98e3f5a376ed21afd96d064e654'/>
<id>urn:sha1:b60d353a6574f98e3f5a376ed21afd96d064e654</id>
<content type='text'>
and UI_add_verify_string() return -1 (and maybe -2?) on failure and
&gt;=0 on success, instead of always zero on success

problem reported by Mark Patruck (mark (at) wrapped.cx)
ok miod@
</content>
</entry>
<entry>
<title>Check the return value of the UI functions (including UI_new() which return</title>
<updated>2014-07-23T04:44:56Z</updated>
<author>
<name>miod</name>
<email>miod@openbsd.org</email>
</author>
<published>2014-07-23T04:44:56Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=c40ede0917953bfe57ee31c5d160eb82d3810e7d'/>
<id>urn:sha1:c40ede0917953bfe57ee31c5d160eb82d3810e7d</id>
<content type='text'>
value is happily dereferenced without checking it for being non-NULL).

ok beck@
</content>
</entry>
<entry>
<title>Only import cryptlib.h in the four source files that actually need it.</title>
<updated>2014-07-11T08:44:47Z</updated>
<author>
<name>jsing</name>
<email>jsing@openbsd.org</email>
</author>
<published>2014-07-11T08:44:47Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=b6ab114e77db2581d5bda2ca4b0aa0d68b2e0f90'/>
<id>urn:sha1:b6ab114e77db2581d5bda2ca4b0aa0d68b2e0f90</id>
<content type='text'>
Remove the openssl public includes from cryptlib.h and add a small number
of includes into the source files that actually need them. While here,
also sort/group/tidy the includes.

ok beck@ miod@
</content>
</entry>
<entry>
<title>Kill a blatantly outdated (and now wrong) comment</title>
<updated>2014-07-10T19:30:06Z</updated>
<author>
<name>miod</name>
<email>miod@openbsd.org</email>
</author>
<published>2014-07-10T19:30:06Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=22a8f4f044886c18c8cbd679ad367b7d2c3245be'/>
<id>urn:sha1:22a8f4f044886c18c8cbd679ad367b7d2c3245be</id>
<content type='text'>
</content>
</entry>
</feed>
