<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/evp, branch libressl-v3.3.1</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=libressl-v3.3.1</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=libressl-v3.3.1'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2020-06-05T18:44:42+00:00</updated>
<entry>
<title>Add a custom copy handler for AES key wrap</title>
<updated>2020-06-05T18:44:42+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2020-06-05T18:44:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f599916be5b15add90651fc8802c4f96fc257310'/>
<id>urn:sha1:f599916be5b15add90651fc8802c4f96fc257310</id>
<content type='text'>
This is necessary because ctx-&gt;cipher_data is an EVP_AES_WRAP_CTX
containing a pointer to ctx-&gt;iv. EVP_CIPHER_CTX_copy() uses memcpy
to copy cipher_data to the target struct. The result is that the
copy contains a pointer to the wrong struct, which then leads to a
use-after-free. The custom copy handler fixes things up to avoid
that.

Issue reported by Guido Vranken

ok beck inoguchi jsing
</content>
</entry>
<entry>
<title>Allow GOST R 34.11-2012 in PBE/PBKDF2/PKCS#5.</title>
<updated>2020-06-05T17:30:41+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-06-05T17:30:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=35a22aaa59dd2c20dc984d2317024ae0ea5c4939'/>
<id>urn:sha1:35a22aaa59dd2c20dc984d2317024ae0ea5c4939</id>
<content type='text'>
Diff from Dmitry Baryshkov &lt;dbaryshkov@gmail.com&gt;

Sponsored by ROSA Linux

ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>Disallow setting the AES-GCM IV length to 0</title>
<updated>2020-04-30T18:43:11+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2020-04-30T18:43:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=1813a9138ee882b675662d47ed9fe6974bd433f3'/>
<id>urn:sha1:1813a9138ee882b675662d47ed9fe6974bd433f3</id>
<content type='text'>
It is possible to do this by abusing the EVP_CTRL_INIT API.
Pointed out by jsing.

ok inoguchi jsing (as part of a larger diff)
</content>
</entry>
<entry>
<title>Disallow the use of zero length IVs in AES-GCM via</title>
<updated>2020-04-27T19:31:02+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2020-04-27T19:31:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=59b4077b60cc24004bc23295bd2ff465be743f11'/>
<id>urn:sha1:59b4077b60cc24004bc23295bd2ff465be743f11</id>
<content type='text'>
EVP_AEAD_CTX_{open,seal}, as this leaks the authentication key.

Issue reported and fix tested by Guido Vranken.

ok beck, jsing

This commit adds a constant to a public header despite library lock,
as discussed with deraadt and sthen.
</content>
</entry>
<entry>
<title>Check high bit for base64 decode</title>
<updated>2020-03-04T11:53:21+00:00</updated>
<author>
<name>inoguchi</name>
<email></email>
</author>
<published>2020-03-04T11:53:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b112788885dac0be8d46296a88f6713f8e4fccd0'/>
<id>urn:sha1:b112788885dac0be8d46296a88f6713f8e4fccd0</id>
<content type='text'>
Referred to this OpenSSL commit and adopted to the codebase.
b785504a10310cb2872270eb409b70971be5e76e

suggest and ok tb@
</content>
</entry>
<entry>
<title>Fix base64 processing of long lines</title>
<updated>2020-03-03T15:03:14+00:00</updated>
<author>
<name>inoguchi</name>
<email></email>
</author>
<published>2020-03-03T15:03:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a1b14dfcb76f18893ca6869d0509ab8ae9795933'/>
<id>urn:sha1:a1b14dfcb76f18893ca6869d0509ab8ae9795933</id>
<content type='text'>
Fix the problem that long unbroken line of base64 text is not decoded.
Referred to this OpenSSL commit and adapted to the codebase.
3cdd1e94b1d71f2ce3002738f9506da91fe2af45

Reported by john.a.passaro &lt;at&gt; gmail.com to the LibreSSL ML.

ok tb@
</content>
</entry>
<entry>
<title>typo</title>
<updated>2020-01-26T07:47:26+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2020-01-26T07:47:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ca5665b8ffa6163d6ad17325016957e9ac2d2230'/>
<id>urn:sha1:ca5665b8ffa6163d6ad17325016957e9ac2d2230</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Improve the comment explaining why the previous change matches OpenSSL's</title>
<updated>2020-01-26T07:34:05+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2020-01-26T07:34:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=85d803b7cde3d60ac20d7fac7b777c5884dec1b2'/>
<id>urn:sha1:85d803b7cde3d60ac20d7fac7b777c5884dec1b2</id>
<content type='text'>
behavior.

ok jsing
</content>
</entry>
<entry>
<title>Adjust EVP_chacha20()'s behavior to match OpenSSL's semantics:</title>
<updated>2020-01-26T02:39:58+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2020-01-26T02:39:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d70d94b77ba7878e6682514bd07a9048e151e224'/>
<id>urn:sha1:d70d94b77ba7878e6682514bd07a9048e151e224</id>
<content type='text'>
The new IV is 128 bit long and is actually the 64 bit counter followed
by 64 the bit initialization vector. This is needed by an upcoming
change in OpenSSH and is a breaking change for all current callers.
There are language bindings for Node.js, Rust and Erlang, but none of
our ports use them.

Note that EVP_chacha20() was first introduced in LibreSSL on May 1, 2014
while the entirely incompatible version in OpenSSL was committed on
Dec 9, 2015.

Initial diff from djm and myself, further refinements by djm.
Ports grepping by sthen

ok jsing
</content>
</entry>
<entry>
<title>Avoid leak in error path of PKCS5_PBE_keyivgen</title>
<updated>2020-01-12T07:11:13+00:00</updated>
<author>
<name>inoguchi</name>
<email></email>
</author>
<published>2020-01-12T07:11:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=bfc89f200ba04986edb72a16fba03657ec54f115'/>
<id>urn:sha1:bfc89f200ba04986edb72a16fba03657ec54f115</id>
<content type='text'>
ok jsing@ tb@
</content>
</entry>
</feed>
