<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/chacha, branch libressl-v3.8.0</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=libressl-v3.8.0</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=libressl-v3.8.0'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2022-08-20T18:44:58+00:00</updated>
<entry>
<title>Remove UINT32_MAX limitation on ChaCha() and CRYPTO_chacha_20().</title>
<updated>2022-08-20T18:44:58+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-08-20T18:44:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c4f5cc12854a0a64258f9452a1d89656f20a1ca8'/>
<id>urn:sha1:c4f5cc12854a0a64258f9452a1d89656f20a1ca8</id>
<content type='text'>
We can avoid this unnecessary limitation by calling chacha_encrypt_bytes()
multiple times internally. In the case of ChaCha(), the caller still needs
to ensure that the same IV is not used for more than 2^70 bytes.

ok tb@
</content>
</entry>
<entry>
<title>Switch from u_int and u_char to u32 and u8 to avoid portability issues.</title>
<updated>2021-10-22T17:43:00+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-10-22T17:43:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f88a73e4ec84a81466950e92df5ae0ecab269bde'/>
<id>urn:sha1:f88a73e4ec84a81466950e92df5ae0ecab269bde</id>
<content type='text'>
Prompted by a diff by Jonas Termansen.

ok jsing
</content>
</entry>
<entry>
<title>add support for xchacha20 and xchacha20-poly1305</title>
<updated>2019-01-22T00:59:21+00:00</updated>
<author>
<name>dlg</name>
<email></email>
</author>
<published>2019-01-22T00:59:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=4dfb993f9f695f40d03730129e2c082223711b65'/>
<id>urn:sha1:4dfb993f9f695f40d03730129e2c082223711b65</id>
<content type='text'>
xchacha is a chacha stream that allows for an extended nonce, which
in turn makes it feasible to use random nonces.

ok tb@
</content>
</entry>
<entry>
<title>Convert the sigma and tau initialisers to byte arrays, rather than using</title>
<updated>2017-08-13T16:55:31+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2017-08-13T16:55:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ae4d6b8586e285ed1d7d18a7a183f18f35fc8b1c'/>
<id>urn:sha1:ae4d6b8586e285ed1d7d18a7a183f18f35fc8b1c</id>
<content type='text'>
strings. The original code is perfectly valid C, however it causes some
compilers to complain since it lacks room for a string NUL terminator and
the compiler is not smart enough to realise that these are only used as
byte arrays and never treated as strings.

ok bcook@ beck@ inoguchi@
</content>
</entry>
<entry>
<title>Change the counter argument for CRYPTO_chacha_20 to be 64-bits on all platforms.</title>
<updated>2015-12-09T14:07:55+00:00</updated>
<author>
<name>bcook</name>
<email></email>
</author>
<published>2015-12-09T14:07:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9c3c66be91c8f6aee01b5b594cb0340b86a35bfb'/>
<id>urn:sha1:9c3c66be91c8f6aee01b5b594cb0340b86a35bfb</id>
<content type='text'>
The recently-added EVP_aead_chacha20_poly1305_ietf() function, which implements
informational RFC 7539, "ChaCha20 and Poly1305 for IETF Protocols", needs a
64-bit counter to avoid truncation on 32-bit platforms.

The existing TLS ChaCha20-Poly1305 ciphersuite is not impacted by this, but
making this change requires an ABI bump.

ok jsing@, "Looks sane" beck@
</content>
</entry>
<entry>
<title>Add missing year to copyright.</title>
<updated>2014-07-25T14:04:51+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2014-07-25T14:04:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=155fbc115e08fe35c3363e1eec376f81c141a5f7'/>
<id>urn:sha1:155fbc115e08fe35c3363e1eec376f81c141a5f7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>replace u_int8_t with uint8_t</title>
<updated>2014-07-11T08:47:47+00:00</updated>
<author>
<name>bcook</name>
<email></email>
</author>
<published>2014-07-11T08:47:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2ca0a041179d92f856da4e6fbfa2b4d62c44be06'/>
<id>urn:sha1:2ca0a041179d92f856da4e6fbfa2b4d62c44be06</id>
<content type='text'>
ok beck@
</content>
</entry>
<entry>
<title>add missing stdint. include for uint32_t, etc.</title>
<updated>2014-07-08T14:30:23+00:00</updated>
<author>
<name>bcook</name>
<email></email>
</author>
<published>2014-07-08T14:30:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=4e034cc02822d664dec3b2e45e8e620fd3301ed3'/>
<id>urn:sha1:4e034cc02822d664dec3b2e45e8e620fd3301ed3</id>
<content type='text'>
ok beck@ jsing@
</content>
</entry>
<entry>
<title>If a chacha operation does not consume all of the generated key stream,</title>
<updated>2014-06-24T18:12:09+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2014-06-24T18:12:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=125ab32227935a33d4c3ef80e58ed8f9d7cfbe8d'/>
<id>urn:sha1:125ab32227935a33d4c3ef80e58ed8f9d7cfbe8d</id>
<content type='text'>
ensure that we save it and consume it on subsequent writes. Otherwise we
end up discarding part of the key stream and instead generate a new block
at the start of the next write.

This was only an issue for callers that did multiple writes that are not
multiples of 64 bytes - in particular, the ChaCha20Poly1305 usage does not
hit this problem since it performs encryption in a single-shot. For the
same reason, this is also a non-issue when openssl(1) is used to encrypt
with ChaCha.

Issue identified by insane coder; reported to bugs@ by Joseph M. Schwartz.

ok beck@
</content>
</entry>
<entry>
<title>Some KNF.</title>
<updated>2014-06-24T17:48:30+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2014-06-24T17:48:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c58a8845c63797e02604d37d10de2de9a1f8b046'/>
<id>urn:sha1:c58a8845c63797e02604d37d10de2de9a1f8b046</id>
<content type='text'>
</content>
</entry>
</feed>
