Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | chunk: Add function to calculate Internet Checksums according to RFC 1071 | Tobias Brunner | 2014-07-22 | 1 | -0/+49 |
| | |||||
* | unit-tests: Use Windows path for chunk tests, and socket functions if required | Martin Willi | 2014-06-04 | 1 | -2/+10 |
| | |||||
* | unit-tests: Verify two bytes at once when testing chunk_clear() | Tobias Brunner | 2014-04-02 | 1 | -3/+6 |
| | | | | | This reduces the chances of arbitrary test failures if the memory area already got overwritten. | ||||
* | chunk: Externalize error reporting in chunk_write() | Martin Willi | 2014-01-23 | 1 | -2/+2 |
| | | | | | This avoids passing that arbitrary label just for error messages, and gives greater flexibility in handling errors. | ||||
* | chunk: Use dynamically allocated buffer in chunk_from_fd() | Martin Willi | 2014-01-23 | 1 | -0/+84 |
| | | | | | | | | When acting on files, we can use fstat() to estimate the buffer size. On non-file FDs, we dynamically increase an allocated buffer. Additionally we slightly change the function signature to properly handle zero-length files and add appropriate unit tests. | ||||
* | chunk: Add functions to map file contents to a chunk | Martin Willi | 2014-01-23 | 1 | -1/+43 |
| | |||||
* | chunk: Fix chunk_mac/hash tests on big-endian systems | Tobias Brunner | 2014-01-06 | 1 | -2/+27 |
| | | | | | | | | 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. | ||||
* | unit-tests: Move test suites to its own subfolder | Martin Willi | 2013-11-06 | 1 | -0/+876 |