<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libssl, branch OPENBSD_6_4_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_6_4_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_6_4_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2018-09-12T06:36:15+00:00</updated>
<entry>
<title>crank to follow minor crank in libcrypto; ok tb@ jsing@</title>
<updated>2018-09-12T06:36:15+00:00</updated>
<author>
<name>djm</name>
<email></email>
</author>
<published>2018-09-12T06:36:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=acf423199f07a7c18afa9a7e6000e17d6d4fce38'/>
<id>urn:sha1:acf423199f07a7c18afa9a7e6000e17d6d4fce38</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove now unused code for EVP_CIPH_FLAG_AEAD_CIPHER and EVP_CIPH_GCM_MODE.</title>
<updated>2018-09-08T14:39:41+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2018-09-08T14:39:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=796a6cede5802a1cdee69a9fbb287c26897883f9'/>
<id>urn:sha1:796a6cede5802a1cdee69a9fbb287c26897883f9</id>
<content type='text'>
ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>SSL_MAX_DIGEST is no longer needed.</title>
<updated>2018-09-08T14:29:52+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2018-09-08T14:29:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f7f25e05343da66a03d305acf325d93ab9cae779'/>
<id>urn:sha1:f7f25e05343da66a03d305acf325d93ab9cae779</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Drop SSL_CIPHER_ALGORITHM2_AEAD flag.</title>
<updated>2018-09-06T16:40:45+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2018-09-06T16:40:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=39009dce3f2b539a01cfeed40b04f52c37955b4c'/>
<id>urn:sha1:39009dce3f2b539a01cfeed40b04f52c37955b4c</id>
<content type='text'>
All of our algorithm_mac == SSL_AEAD cipher suites use EVP_AEAD, so we can
condition on that rather than having a separate redundant flag.

ok tb@
</content>
</entry>
<entry>
<title>Use the newer/more sensible names for EVP_MD_CTX_* functions.</title>
<updated>2018-09-05T16:58:59+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2018-09-05T16:58:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=4e47c515f40e5440374f3cb833834c52edfd8b18'/>
<id>urn:sha1:4e47c515f40e5440374f3cb833834c52edfd8b18</id>
<content type='text'>
 EVP_MD_CTX_create -&gt; EVP_MD_CTX_new
 EVP_MD_CTX_destroy -&gt; EVP_MD_CTX_free

This should make the intent more obvious and reduce head scratching during
code reviews.

Raised by tb@
</content>
</entry>
<entry>
<title>Correctly clear the current cipher state, when changing cipher state.</title>
<updated>2018-09-05T16:48:11+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2018-09-05T16:48:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c67d138a999b0555285f0993584d8124abc2b926'/>
<id>urn:sha1:c67d138a999b0555285f0993584d8124abc2b926</id>
<content type='text'>
When a renegotiation results in a change of cipher suite, the renegotation
would fail if it switched from AEAD to non-AEAD or vice versa. This is due
to the fact that the previous EVP_AEAD or EVP_CIPHER state remained,
resulting in incorrect logic that caused MAC failures.

Rename ssl_clear_cipher_ctx() to ssl_clear_cipher_state() and split it
into separate read/write components, then call these functions from the
appropriate places when a ChangeCipherSpec message is being processed.
Also, remove the separate ssl_clear_hash_ctx() calls and fold these into
the ssl_clear_cipher_{read,write}_state() functions.

Issue reported by Bernard Spil, who also tested this diff.

ok tb@
</content>
</entry>
<entry>
<title>Stop using composite EVP_CIPHER AEADs.</title>
<updated>2018-09-03T18:00:50+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2018-09-03T18:00:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=09e3c4eaff9a257054b6dc7cc8fbeed5239c481c'/>
<id>urn:sha1:09e3c4eaff9a257054b6dc7cc8fbeed5239c481c</id>
<content type='text'>
The composite AEADs are "stitched" mode ciphers, that are only supported on
some architectures/CPUs and are designed to be faster than a separate
EVP_CIPHER and EVP_MD implementation. The three AEADs are used for less
than ideal cipher suites (if you have hardware support that these use
there are better cipher suite options), plus continuing to support AEADs
via EVP_CIPHER is creating additional code complexity.

ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>Stop handling AES-GCM via ssl_cipher_get_evp().</title>
<updated>2018-09-03T17:45:24+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2018-09-03T17:45:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=34efe444a75c4a4667abad7e2961c1090e97096f'/>
<id>urn:sha1:34efe444a75c4a4667abad7e2961c1090e97096f</id>
<content type='text'>
All of the AES-GCM ciphersuites use the EVP_AEAD interface, so there is no
need to support them via EVP_CIPHER.

ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>Clean up SSL_DES and SSL_IDEA remnants.</title>
<updated>2018-09-03T17:41:13+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2018-09-03T17:41:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=7e13e67bd932c42e580dd62e18bcfc50c5d19180'/>
<id>urn:sha1:7e13e67bd932c42e580dd62e18bcfc50c5d19180</id>
<content type='text'>
All ciphersuites that used these encryption algorithms were removed some
time ago.

ok bcook@ inoguchi@ tb@
</content>
</entry>
<entry>
<title>Remove unused argument to tls1_change_cipher_state_cipher().</title>
<updated>2018-08-31T18:31:34+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2018-08-31T18:31:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ab82fc96211b03411f245a194d52f6ef86aa12d5'/>
<id>urn:sha1:ab82fc96211b03411f245a194d52f6ef86aa12d5</id>
<content type='text'>
</content>
</entry>
</feed>
