History log of /systemd/src/basic/siphash24.h
Revision Date Author Comments Expand
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.

af-list.c alloc-util.c alloc-util.h arphrd-list.c async.c audit-util.c barrier.c barrier.h bitmap.c bitmap.h btrfs-util.c btrfs-util.h bus-label.c bus-label.h calendarspec.c calendarspec.h cap-list.c capability-util.c capability-util.h cgroup-util.c cgroup-util.h chattr-util.c clock-util.c conf-files.c copy.c copy.h cpu-set-util.c device-nodes.c device-nodes.h dirent-util.c dirent-util.h env-util.c env-util.h errno-list.c escape.c escape.h ether-addr-util.c exit-status.h extract-word.c fd-util.c fdset.c fdset.h fileio-label.c fileio.c fs-util.c fs-util.h glob-util.c glob-util.h gunicode.c hashmap.c hashmap.h hexdecoct.c hexdecoct.h hostname-util.c in-addr-util.c in-addr-util.h io-util.c io-util.h json.c json.h label.c locale-util.c lockfile-util.c lockfile-util.h log.c login-util.c memfd-util.c memfd-util.h mempool.c mkdir-label.c mkdir.c mount-util.c mount-util.h parse-util.c parse-util.h path-util.c path-util.h prioq.c prioq.h proc-cmdline.c process-util.c process-util.h random-util.c random-util.h ratelimit.c ratelimit.h replace-var.c rlimit-util.c rm-rf.c selinux-util.c selinux-util.h sigbus.c signal-util.c siphash24.c siphash24.h smack-util.c smack-util.h socket-label.c socket-util.c socket-util.h stat-util.c stat-util.h strbuf.c strbuf.h string-table.c string-table.h string-util.c string-util.h strv.c strv.h strxcpyx.c strxcpyx.h syslog-util.c terminal-util.c terminal-util.h time-util.c time-util.h unit-name.c user-util.c utf8.c utf8.h util.c util.h verbs.c virt.c xattr-util.c xattr-util.h xml.c
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/

/systemd/Makefile.am /systemd/README /systemd/src/Makefile .gitignore MurmurHash2.c MurmurHash2.h af-list.c af-list.h arphrd-list.c arphrd-list.h async.c async.h audit.c audit.h barrier.c barrier.h blkid-util.h btrfs-ctree.h btrfs-util.c btrfs-util.h build.h bus-label.c bus-label.h calendarspec.c calendarspec.h cap-list.c cap-list.h capability.c capability.h cgroup-util.c cgroup-util.h clock-util.c clock-util.h conf-files.c conf-files.h copy.c copy.h def.h device-nodes.c device-nodes.h env-util.c env-util.h errno-list.c errno-list.h ether-addr-util.h exit-status.c exit-status.h fdset.c fdset.h fileio-label.c fileio-label.h fileio.c fileio.h gunicode.c gunicode.h hashmap.c hashmap.h hostname-util.c hostname-util.h in-addr-util.c in-addr-util.h ioprio.h json.c json.h label.c label.h list.h locale-util.c locale-util.h lockfile-util.c lockfile-util.h log.c log.h login-util.c login-util.h macro.h memfd-util.c memfd-util.h mempool.c mempool.h missing.h mkdir-label.c mkdir.c mkdir.h ordered-set.h path-util.c path-util.h prioq.c prioq.h process-util.c process-util.h random-util.c random-util.h ratelimit.c ratelimit.h refcnt.h replace-var.c replace-var.h ring.c ring.h rm-rf.c rm-rf.h securebits.h selinux-util.c selinux-util.h set.h sigbus.c sigbus.h signal-util.c signal-util.h siphash24.c siphash24.h smack-util.c smack-util.h socket-label.c socket-util.c socket-util.h sparse-endian.h special.h strbuf.c strbuf.h strv.c strv.h strxcpyx.c strxcpyx.h terminal-util.c terminal-util.h time-util.c time-util.h unaligned.h unit-name.c unit-name.h utf8.c utf8.h util.c util.h verbs.c verbs.h virt.c virt.h xml.c xml.h /systemd/src/libsystemd-terminal/grdev-drm.c /systemd/src/libsystemd-terminal/grdev.c /systemd/src/libsystemd-terminal/idev.c /systemd/src/libsystemd/sd-bus/bus-internal.c /systemd/src/libsystemd/sd-bus/bus-internal.h /systemd/src/libsystemd/sd-login/sd-login.c /systemd/src/login/logind-session.h /systemd/src/login/test-login-shared.c /systemd/src/shared/bus-util.c /systemd/src/shared/bus-util.h