chunk: Add predictable hash function
authorTobias Brunner <tobias@strongswan.org>
Fri, 28 Jun 2013 10:12:41 +0000 (12:12 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 28 Jun 2013 15:00:29 +0000 (17:00 +0200)
commited235dbbf26cbeaf0a57173eb6f1c9a196ab4a6d
tree2b0432fbea7bc6e2299fe578729e3692d307e281
parentb7b5432ff8cfdcc56a395ffccd899029a6ca676f
chunk: Add predictable hash function

Since chunk_hash() is randomized its output is not predictable, that is,
it is only within the same process.
src/libstrongswan/tests/test_chunk.c
src/libstrongswan/utils/chunk.c
src/libstrongswan/utils/chunk.h