d51155663a0a95659bd8a02a6cba51359ff416db |
|
11-Jan-2016 |
Lennart Poettering <lennart@poettering.net> |
shared: make sure foo.bar and foobar result in different domain name hashes
This also introduces a new macro siphash24_compress_byte() which is useful to add a single byte into the hash stream,
and ports one user over to it. |
11c3a36649e5e5e77db499c92f3cdcbd619efd3a |
|
30-Nov-2015 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
basic: include only what we use
This is a cleaned up result of running iwyu but without forward
declarations on src/basic. |
6059dab8897ecd24a51a6601499c1bb9002bc54a |
|
17-Nov-2015 |
Lennart Poettering <lennart@poettering.net> |
siphash: minor coding style fixes and modernizations
Only cosmetics really, doesn't change any actual logic. |
933f9caeeb2b3c1b951d330e04beb04226e5a890 |
|
16-Nov-2015 |
Daniel Mack <daniel@zonque.org> |
siphash24: let siphash24_finalize() and siphash24() return the result directly
Rather than passing a pointer to return the result, return it directly
from the function calls.
Also, return the result in native endianess, and let the callers care
about the conversion. For hash tables and bloom filters, we don't care,
but in order to keep MAC addresses and DHCP client IDs stable, we
explicitly convert to LE. |
dbe81cbd2a93088236a2e4e41eeb33378940f7b9 |
|
16-Nov-2015 |
Martin Pitt <martin.pitt@ubuntu.com> |
siphash24: change result argument to uint64_t
Change the "out" parameter from uint8_t[8] to uint64_t. On architectures which
enforce pointer alignment this fixes crashes when we previously cast an
unaligned array to uint64_t*, and on others this should at least improve
performance as the compiler now aligns these properly.
This also simplifies the code in most cases by getting rid of typecasts. The
only place which we can't change is struct duid's en.id, as that is _packed_
and public API, so we can't enforce alignment of the "id" field and have to
use memcpy instead. |
0cb3c286883b694fc52a18a3b559ff98931641f3 |
|
06-Oct-2015 |
Tom Gundersen <teg@jklm.no> |
siphash24: unify API
Make the API of the new helpers more similar to the old wrapper.
In particular we now return the hash as a byte string to avoid
any endianness problems. |
7c57f504c935a34362d36f514a409f4cbd23a349 |
|
05-Oct-2015 |
Tom Gundersen <teg@jklm.no> |
siphash24: expose the internal helper functions |
a095315b3c31f7a419baceac82c26c3c5ac0cd12 |
|
11-Jun-2015 |
Kay Sievers <kay@vrfy.org> |
build-sys: split internal basic/ library from shared/
basic/ can be used by everything
cannot use anything outside of basic/
libsystemd/ can use basic/
cannot use shared/
shared/ can use libsystemd/ |