<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/evp/evp_key.c, branch OPENBSD_6_8_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_6_8_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_6_8_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2018-08-14T17:59:26+00:00</updated>
<entry>
<title>Add a comment that explains what the check is doing and why len &gt;= 1.</title>
<updated>2018-08-14T17:59:26+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2018-08-14T17:59:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9859ca36fd5f9e9fa60319795fa81bb5cd44e986'/>
<id>urn:sha1:9859ca36fd5f9e9fa60319795fa81bb5cd44e986</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:36+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2018-08-14T17:51:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=bb1d97427df2d89362a9a4b4d02e7fa26ef0cdf8'/>
<id>urn:sha1:bb1d97427df2d89362a9a4b4d02e7fa26ef0cdf8</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:23+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2017-01-29T17:49:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d1f47bd292f36094480caa49ada36b99a69c59b0'/>
<id>urn:sha1:d1f47bd292f36094480caa49ada36b99a69c59b0</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:26+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2015-09-10T15:56:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=647569a51c1530d10e75e272f0982682f696caa7'/>
<id>urn:sha1:647569a51c1530d10e75e272f0982682f696caa7</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:39+00:00</updated>
<author>
<name>miod</name>
<email></email>
</author>
<published>2015-02-10T09:55:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f801e3b0ae96bcc98cbe6390456e30ff4efecd20'/>
<id>urn:sha1:f801e3b0ae96bcc98cbe6390456e30ff4efecd20</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:35+00:00</updated>
<author>
<name>miod</name>
<email></email>
</author>
<published>2015-02-10T09:52:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=edf340ccfb8b64c1c344e29963a2093fe1298a86'/>
<id>urn:sha1:edf340ccfb8b64c1c344e29963a2093fe1298a86</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:21+00:00</updated>
<author>
<name>guenther</name>
<email></email>
</author>
<published>2014-08-06T04:28:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=bb79bde60b45a6e7fc5c4c7a90472d95b589df85'/>
<id>urn:sha1:bb79bde60b45a6e7fc5c4c7a90472d95b589df85</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:56+00:00</updated>
<author>
<name>miod</name>
<email></email>
</author>
<published>2014-07-23T04:44:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5d8b6758f48d0d94258688d237e84d5c6e1e62bd'/>
<id>urn:sha1:5d8b6758f48d0d94258688d237e84d5c6e1e62bd</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:49+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2014-07-11T08:44:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=74e2c009c83ad374bd6acdcfc376a384e25ab007'/>
<id>urn:sha1:74e2c009c83ad374bd6acdcfc376a384e25ab007</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:06+00:00</updated>
<author>
<name>miod</name>
<email></email>
</author>
<published>2014-07-10T19:30:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=afd175f3d3f495273c7e2947df34b5426952d15d'/>
<id>urn:sha1:afd175f3d3f495273c7e2947df34b5426952d15d</id>
<content type='text'>
</content>
</entry>
</feed>
