chunk: Fix chunk_mac/hash tests on big-endian systems
authorTobias Brunner <tobias@strongswan.org>
Mon, 6 Jan 2014 16:31:07 +0000 (17:31 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 6 Jan 2014 16:31:07 +0000 (17:31 +0100)
commitd62a6ec3f9949d79bb634a5da030361d6681d531
treec154fda96f4d81e5a213b2fe989fecf31bef59bf
parent13f2d3a2f637fc5277fc0752392f56d1af7a1ccb
chunk: Fix chunk_mac/hash tests on big-endian systems

Our SipHash-2-4 implementation returns the result in host order, while
the test vectors are little-endian.  Use a custom comparison function to
account for this.

Fixes #478.
src/libstrongswan/tests/suites/test_chunk.c