History log of /systemd/src/basic/siphash24.c
Revision Date Author Comments Expand
93cc7779e0c121b75183920173f37cd1ee9d59cf 01-Dec-2015 Thomas Hindoe Paaboel Andersen <phomes@gmail.com>

basic: re-sort includes My previous patch to only include what we use accidentially placed the added inlcudes in non-sorted order.

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.

4de91d7eaf765f73b9b5f91b920f0bb0a19464db 17-Nov-2015 Lennart Poettering <lennart@poettering.net>

siphash: fix another alignment issue

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.

cf0fbc49e67b55f8d346fc94de28c90113505297 16-Nov-2015 Thomas Hindoe Paaboel Andersen <phomes@gmail.com>

tree-wide: sort includes Sort the includes accoding to the new coding style.

/systemd/src/backlight/backlight.c af-list.c arphrd-list.c calendarspec.c cap-list.c errno-list.c exit-status.c fdset.c fileio-label.c json.c label.c lockfile-util.c login-util.c mempool.c mkdir-label.c mkdir.c selinux-util.c sigbus.c siphash24.c strv.c strxcpyx.c user-util.c utf8.c util.c /systemd/src/boot/efi/boot.c /systemd/src/boot/efi/console.c /systemd/src/boot/efi/graphics.c /systemd/src/boot/efi/linux.c /systemd/src/boot/efi/pefile.c /systemd/src/boot/efi/splash.c /systemd/src/boot/efi/stub.c /systemd/src/bootchart/svg.c /systemd/src/bus-proxyd/stdio-bridge.c /systemd/src/core/audit-fd.c /systemd/src/core/dbus-automount.c /systemd/src/core/dbus-busname.c /systemd/src/core/dbus-device.c /systemd/src/core/dbus-kill.c /systemd/src/core/dbus-mount.c /systemd/src/core/dbus-path.c /systemd/src/core/dbus-slice.c /systemd/src/core/dbus-swap.c /systemd/src/core/dbus-target.c /systemd/src/core/device.c /systemd/src/core/hostname-setup.c /systemd/src/core/ima-setup.c /systemd/src/core/kmod-setup.c /systemd/src/core/load-dropin.c /systemd/src/core/load-fragment.c /systemd/src/core/locale-setup.c /systemd/src/core/main.c /systemd/src/core/mount-setup.c /systemd/src/core/selinux-access.c /systemd/src/core/selinux-setup.c /systemd/src/core/slice.c /systemd/src/core/swap.c /systemd/src/core/transaction.c /systemd/src/core/umount.c /systemd/src/fsck/fsck.c /systemd/src/gpt-auto-generator/gpt-auto-generator.c /systemd/src/hibernate-resume/hibernate-resume.c /systemd/src/hostname/hostnamed.c /systemd/src/import/aufs-util.c /systemd/src/import/export-raw.c /systemd/src/import/pull-tar.c /systemd/src/initctl/initctl.c /systemd/src/journal-remote/journal-upload-journal.c /systemd/src/journal-remote/microhttpd-util.c /systemd/src/journal/audit-type.c /systemd/src/journal/journal-authenticate.c /systemd/src/journal/journal-qrcode.c /systemd/src/journal/journal-verify.c /systemd/src/journal/journald-console.c /systemd/src/journal/journald-kmsg.c /systemd/src/journal/journald-rate-limit.c /systemd/src/journal/journald-server.c /systemd/src/journal/journald-wall.c /systemd/src/journal/journald.c /systemd/src/journal/lookup3.c /systemd/src/journal/mmap-cache.c /systemd/src/journal/test-catalog.c /systemd/src/journal/test-journal-enum.c /systemd/src/journal/test-journal-interleaving.c /systemd/src/journal/test-journal-verify.c /systemd/src/journal/test-journal.c /systemd/src/libsystemd-network/dhcp-identifier.c /systemd/src/libsystemd-network/dhcp-option.c /systemd/src/libsystemd-network/dhcp-packet.c /systemd/src/libsystemd-network/dhcp6-option.c /systemd/src/libsystemd-network/lldp-port.c /systemd/src/libsystemd-network/lldp-tlv.c /systemd/src/libsystemd-network/network-internal.c /systemd/src/libsystemd-network/test-acd.c /systemd/src/libsystemd-network/test-dhcp-client.c /systemd/src/libsystemd-network/test-dhcp-option.c /systemd/src/libsystemd/sd-bus/bus-bloom.c /systemd/src/libsystemd/sd-bus/bus-common-errors.c /systemd/src/libsystemd/sd-bus/bus-container.c /systemd/src/libsystemd/sd-bus/bus-control.c /systemd/src/libsystemd/sd-bus/bus-error.c /systemd/src/libsystemd/sd-bus/bus-gvariant.c /systemd/src/libsystemd/sd-bus/bus-objects.c /systemd/src/libsystemd/sd-bus/bus-slot.c /systemd/src/libsystemd/sd-bus/sd-bus.c /systemd/src/libsystemd/sd-bus/test-bus-chat.c /systemd/src/libsystemd/sd-bus/test-bus-creds.c /systemd/src/libsystemd/sd-bus/test-bus-error.c /systemd/src/libsystemd/sd-bus/test-bus-introspect.c /systemd/src/libsystemd/sd-bus/test-bus-marshal.c /systemd/src/libsystemd/sd-bus/test-bus-match.c /systemd/src/libsystemd/sd-bus/test-bus-objects.c /systemd/src/libsystemd/sd-bus/test-bus-signature.c /systemd/src/libsystemd/sd-bus/test-bus-zero-copy.c /systemd/src/libsystemd/sd-id128/sd-id128.c /systemd/src/libsystemd/sd-netlink/local-addresses.c /systemd/src/libsystemd/sd-netlink/netlink-util.c /systemd/src/libsystemd/sd-netlink/test-local-addresses.c /systemd/src/libsystemd/sd-utf8/sd-utf8.c /systemd/src/libudev/libudev-device-private.c /systemd/src/libudev/libudev-device.c /systemd/src/libudev/libudev-enumerate.c /systemd/src/libudev/libudev-monitor.c /systemd/src/libudev/libudev-queue.c /systemd/src/libudev/libudev-util.c /systemd/src/libudev/libudev.c /systemd/src/login/logind-core.c /systemd/src/login/logind-session-device.c /systemd/src/login/logind-session.c /systemd/src/login/logind-utmp.c /systemd/src/login/logind.c /systemd/src/login/sysfs-show.c /systemd/src/login/test-login-shared.c /systemd/src/login/test-login-tables.c /systemd/src/machine-id-setup/machine-id-setup-main.c /systemd/src/machine/machine.c /systemd/src/machine/test-machine-tables.c /systemd/src/network/networkctl.c /systemd/src/network/networkd-fdb.c /systemd/src/network/networkd-ipv4ll.c /systemd/src/network/networkd-link-bus.c /systemd/src/network/networkd-netdev-bond.c /systemd/src/network/networkd-netdev-bridge.c /systemd/src/network/networkd-netdev-tuntap.c /systemd/src/network/networkd-netdev-veth.c /systemd/src/network/networkd-netdev-vxlan.c /systemd/src/network/test-network-tables.c /systemd/src/network/test-network.c /systemd/src/nspawn/nspawn-network.c /systemd/src/quotacheck/quotacheck.c /systemd/src/remount-fs/remount-fs.c /systemd/src/resolve-host/resolve-host.c /systemd/src/resolve/resolved-llmnr.c /systemd/src/rfkill/rfkill.c /systemd/src/run/run.c /systemd/src/shared/acl-util.c /systemd/src/shared/acpi-fpdt.c /systemd/src/shared/architecture.c /systemd/src/shared/boot-timestamps.c /systemd/src/shared/clean-ipc.c /systemd/src/shared/efivars.c /systemd/src/shared/firewall-util.c /systemd/src/shared/path-lookup.c /systemd/src/shared/ptyfwd.c /systemd/src/shared/seccomp-util.c /systemd/src/shared/spawn-ask-password-agent.c /systemd/src/shared/spawn-polkit-agent.c /systemd/src/shared/sysctl-util.c /systemd/src/shared/watchdog.c /systemd/src/test/test-architecture.c /systemd/src/test/test-boot-timestamps.c /systemd/src/test/test-cgroup-mask.c /systemd/src/test/test-engine.c /systemd/src/test/test-fileio.c /systemd/src/test/test-firewall-util.c /systemd/src/test/test-hashmap.c /systemd/src/test/test-install.c /systemd/src/test/test-job-type.c /systemd/src/test/test-libudev.c /systemd/src/test/test-locale-util.c /systemd/src/test/test-log.c /systemd/src/test/test-loopback.c /systemd/src/test/test-ns.c /systemd/src/test/test-ratelimit.c /systemd/src/test/test-sched-prio.c /systemd/src/test/test-siphash24.c /systemd/src/test/test-sleep.c /systemd/src/test/test-tables.c /systemd/src/test/test-terminal-util.c /systemd/src/test/test-time.c /systemd/src/test/test-unaligned.c /systemd/src/test/test-utf8.c /systemd/src/test/test-watchdog.c /systemd/src/udev/ata_id/ata_id.c /systemd/src/udev/cdrom_id/cdrom_id.c /systemd/src/udev/mtd_probe/mtd_probe.c /systemd/src/udev/mtd_probe/probe_smartmedia.c /systemd/src/udev/scsi_id/scsi_id.c /systemd/src/udev/scsi_id/scsi_serial.c /systemd/src/udev/udev-builtin-uaccess.c /systemd/src/udev/udev-ctrl.c /systemd/src/udev/udev-watch.c /systemd/src/udev/udevadm-control.c /systemd/src/udev/udevadm-monitor.c /systemd/src/udev/udevadm-settle.c /systemd/src/udev/v4l_id/v4l_id.c
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.

8dd85afe761885a9c47173cdafd1b7f9b36d08e6 16-Nov-2015 Daniel Mack <daniel@zonque.org>

siphash24: fix memory alignment Use unaligned_read_le64() to access input buffer when reading complete 64-bit words. This should fix memory traps on platforms with strict aliasing.

17010c230edf9933176948934276cf18007ccadb 06-Oct-2015 Tom Gundersen <teg@jklm.no>

siphash24: coding-style fixes Drop custom types. Drop unnecessary macros. Fix whitespace. Add asserts.

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

2c4cc3bdcd18d554cb2ad076516609c69fdd79aa 05-Oct-2015 Tom Gundersen <teg@jklm.no>

siphash24: make siphash24_compress decomposable This allows the input to siphash24_compress to be decomposed into smaller chunks and the function to be called on each individual chunk.

f2936011c535b73a712990af34555daad21edfe0 05-Oct-2015 Tom Gundersen <teg@jklm.no>

siphash24: move last compression iteration from compression step to finalization step The last compression is special as it deals with the length byte, and padding. Move it to the finalization step in preparation for making compression decomposable.

c7b68d84e48b3bd87520cbd87258bb03a1810e70 05-Oct-2015 Tom Gundersen <teg@jklm.no>

siphash24: split out the compression step

9e77e048d412814bb14fb13cd811973a8e6e5f56 05-Oct-2015 Tom Gundersen <teg@jklm.no>

siphash24: split out the finalization step

708684ef227eadafc0a2e8dff04879d6cc29d0f1 05-Oct-2015 Tom Gundersen <teg@jklm.no>

siphash24: introduce state struct Encapsulate the four state variables in a struct so we can more easily pass them around.

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