summaryrefslogtreecommitdiff
path: root/common/tests/test-hash.c
Commit message (Collapse)AuthorAgeFilesLines
* Add support for using freebl3 for SHA1 and MD5 hashingStef Walter2013-07-101-92/+0
| | | | | | Since we don't want to link freebl3 to libp11-kit.so where it isn't needed, move the SHA-1 and MD5 digest functionality to the trust/ directory.
* Our own unit testing frameworkStef Walter2013-05-211-43/+31
| | | | | | | | * Support the TAP protocol * Much cleaner without having to carry around state * First class support for setup/teardown * Port the common tests * Wait on porting other tests until we've merged outstanding code
* Update to MurmurHash3Stef Walter2013-04-031-9/+9
| | | | | | | This should also fix problems with accessing memory in a non-aligned fashion on platforms where this causes problems. https://bugs.freedesktop.org/show_bug.cgi?id=62819
* Fix testing of murmur hash on bigendian systemsStef Walter2013-03-251-37/+23
| | | | | | The murmur hash produces different output depending on the architecture https://bugzilla.redhat.com/show_bug.cgi?id=927394
* Fix memory leaks reported by 'make leakcheck'Stef Walter2013-03-201-0/+2
|
* Fix invalid memory accesses reported by 'make memcheck'Stef Walter2013-03-201-11/+11
| | | | These are things that showed up in valgrind while running the tests.
* hash: Add the murmur2 hash and start using itStef Walter2013-03-201-0/+71
| | | | | | | | | | | Add implementation of the murmur2 hash function, and start using it for our dictionaries. Our implementation is incremental like our other hash functions. Also remove p11_oid_hash() which wasn't being used. In addition fix several tests whose success was based on the way that the dictionary hashed. This was a hidden testing bug.
* hash: Rename file and functions for hashesStef Walter2013-03-201-0/+151
We're going to be adding other hashes. Also build as part of a different common library.