aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils/chunk.h
Commit message (Collapse)AuthorAgeFilesLines
* chunk: Add predictable hash functionTobias Brunner2013-06-281-1/+31
| | | | | Since chunk_hash() is randomized its output is not predictable, that is, it is only within the same process.
* Use local variable in chunk_from_str()Tobias Brunner2013-06-111-2/+2
| | | | | This allows using strdup() or other string functions as argument without calling them twice.
* Replace chunk_hash() with output from chunk_mac()Tobias Brunner2013-06-111-0/+8
| | | | | | | The quality is way better, the calculation is a bit slower though. The key is statically initialized to zero, which will be changed later to prevent hash flooding.
* Adding chunk_mac() which calculates a 64-bit MAC using SipHash-2-4Tobias Brunner2013-06-111-2/+16
|
* Add a chunk_from_str() initializer that does not include 0-terminatorMartin Willi2013-01-151-0/+5
|
* Moved utils.[ch] to utils folderTobias Brunner2012-10-241-1/+1
|
* Moved chunk_t to utils folderTobias Brunner2012-10-241-0/+318