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. |
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. |
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/ |