<feed xmlns='http://www.w3.org/2005/Atom'>
<title>paraslash/crypt.h, branch master</title>
<subtitle>paraslash - network audio streaming tools</subtitle>
<id>https://git.tue.mpg.de/cgit/paraslash/atom?h=master</id>
<link rel='self' href='https://git.tue.mpg.de/cgit/paraslash/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/'/>
<updated>2026-03-17T22:45:43Z</updated>
<entry>
<title>Switch to SPDX identifiers.</title>
<updated>2026-03-17T22:45:43Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2026-03-15T14:57:29Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=ea0cecf96e08c489fdcc94d046019f4ce46f58e2'/>
<id>urn:sha1:ea0cecf96e08c489fdcc94d046019f4ce46f58e2</id>
<content type='text'>
Generated with

	sed -i 's|Copyright.*Andre Noll.*|SPDX-License-Identifier: GPL-2.0 */|g' *.c *.h

followed by manually tweaking the result a bit. No license change intended.
</content>
</entry>
<entry>
<title>Improve crypto documentation.</title>
<updated>2025-10-08T18:58:23Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2025-06-16T18:04:22Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=0be024717a52a0514a18053d635e7600a39410b9'/>
<id>urn:sha1:0be024717a52a0514a18053d635e7600a39410b9</id>
<content type='text'>
The new file commend for crypt.h, and a few minor improvements in the same
file. No changes to openssl.c and gcrypt.c because those do not contain any
doxygen comments. Also crypt_common.c is left untouched because this file
received its dose of dedox earlier.
</content>
</entry>
<entry>
<title>Rename hash2 -&gt; hash.</title>
<updated>2025-05-22T17:08:23Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2025-05-18T18:31:33Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=cb041d0305b8aeda8130f1febd7c31dd269ea83a'/>
<id>urn:sha1:cb041d0305b8aeda8130f1febd7c31dd269ea83a</id>
<content type='text'>
Now that sha1 is no longer supported, the hash2 naming has become meaningless.
Rename it back to "hash".
</content>
</entry>
<entry>
<title>Remove sha1.</title>
<updated>2025-05-22T17:08:00Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2025-05-18T18:17:12Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=d39156c0e5a6a90fb163cc3fa27d33dbacf6f20e'/>
<id>urn:sha1:d39156c0e5a6a90fb163cc3fa27d33dbacf6f20e</id>
<content type='text'>
Server and client prefer sha256 in the authentication protocol since
paraslash-0.7.0, while 0.6.x clients and servers only know about sha1. This
patch drops the compatibility code which enabled old clients to connect to
new servers and vice versa.

Now the client code no longer checks whether the sha256 feature is supported,
but requests and uses the feature unconditionally. The server still announces
the sha256 feature and accepts the corresponding feature request, but uses
sha256 unconditionally.

With this approach older 0.7.x clients are still compatible to current
server versions and current clients can still talk to servers running older
0.7.x versions.
</content>
</entry>
<entry>
<title>apc_priv_decrypt: Let the callee allocate the buffer.</title>
<updated>2024-05-16T23:36:55Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2023-05-07T16:01:43Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=e15f70f41d691fc1e6cc82fb398429cdb3444342'/>
<id>urn:sha1:e15f70f41d691fc1e6cc82fb398429cdb3444342</id>
<content type='text'>
This complements the previous commit which made the analogous
change for public encryption. Passing char ** instead of char * to
apc_priv_decrypt() allows us to get rid of the magic 1024 constant
in client_common.c.
</content>
</entry>
<entry>
<title>apc_pub_encrypt: Let the callee allocate the buffer.</title>
<updated>2024-05-16T23:36:55Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2023-05-02T21:56:26Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=84b145f3783f4740c7aa4e223e39aad51e3dec33'/>
<id>urn:sha1:84b145f3783f4740c7aa4e223e39aad51e3dec33</id>
<content type='text'>
Change the encryption routine of the apc API to allocate a suitably
sized buffer itself. Currently, the caller has to guess the size of the
buffer to pass to the function and we reuse our 4k handshake buffer for
that. While 4k is is plenty at the moment, that may change, and it's
always better to use the exact size if it is readily available. This
is the case here because the required buffer size is just the number
of bits of the modulus of the key.
</content>
</entry>
<entry>
<title>Merge branch 'maint'</title>
<updated>2023-05-11T17:50:22Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2023-05-11T17:50:22Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=ac03b19b1693fbb7b1d558989ac81c79ed1284ae'/>
<id>urn:sha1:ac03b19b1693fbb7b1d558989ac81c79ed1284ae</id>
<content type='text'>
Two fixes for gcc-12 warnings, and another fix for a benign but
embarrassing braino in gcrypt.c.

* maint:
  gcrypt: Fix return value of apc_get_pubkey().
  error.h: Be more careful with error code masking.
  mp3_afh: Drop unused fields from struct mp3header.
</content>
</entry>
<entry>
<title>gcrypt: Fix return value of apc_get_pubkey().</title>
<updated>2023-05-11T17:43:09Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2023-05-08T19:25:30Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=ac2b74b691bd19544660df8b69f89cd6f5323735'/>
<id>urn:sha1:ac2b74b691bd19544660df8b69f89cd6f5323735</id>
<content type='text'>
The function is supposed to return the key size in bytes, but it
returns the number of *bits*. A consequence of this bug is that
RSA keys which are too short to encrypt our 128 byte buffer are not
rejected as they should be. This is not too serious because we'll fail
later during the encryption step. Fix the bug anyway and clarify the
documentation of apc_get_pubkey().
</content>
</entry>
<entry>
<title>Introduce hash2 (sha256).</title>
<updated>2021-10-21T17:52:40Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2020-03-12T15:06:12Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=e74113b0e1a6ca1c047667218b089362372aa0f0'/>
<id>urn:sha1:e74113b0e1a6ca1c047667218b089362372aa0f0</id>
<content type='text'>
This adds a second hash function which will replace sha1. Both openssl
and libgcrypt support sha256, so it is easy to do. There are no users
of the new functions so far, so this patch has no effect yet.
</content>
</entry>
<entry>
<title>doc: Add missing \ref in crypt.h.</title>
<updated>2020-07-11T17:26:31Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2020-03-12T14:32:20Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=df0826fceedf79b2bd4a90561acdf79bcc578ba8'/>
<id>urn:sha1:df0826fceedf79b2bd4a90561acdf79bcc578ba8</id>
<content type='text'>
This way, we get a warning when the name of the function changes but
the comment is left unmodified.
</content>
</entry>
</feed>
