summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/MD5Test.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add a function to MD5 a file's contents.Zachary Turner2017-03-201-1/+3
| | | | | | | | | | | | | | | In doing so, clean up the MD5 interface a little. Most existing users only care about the lower 8 bytes of an MD5, but for some users that care about the upper and lower, there wasn't a good interface. Furthermore, consumers of the MD5 checksum were required to handle endianness details on their own, so it seems reasonable to abstract this into a nicer interface that just gives you the right value. Differential Revision: https://reviews.llvm.org/D31105 llvm-svn: 298322
* Add convenient functions to compute hashes of byte vectors.Rui Ueyama2016-11-231-0/+10
| | | | | | | | | In many sitautions, you just want to compute a hash for one chunk of data. This patch adds convenient functions for that purpose. Differential Revision: https://reviews.llvm.org/D26988 llvm-svn: 287726
* Simplify creation of a bunch of ArrayRefs by using None, makeArrayRef or ↵Craig Topper2014-08-271-8/+8
| | | | | | just letting them be implicitly created. llvm-svn: 216525
* Add support for adding the contents of a StringRef to the MD5 hash.Eric Christopher2013-05-311-6/+15
| | | | llvm-svn: 183054
* Convert more unsigned char -> uint8_t.Eric Christopher2013-05-311-9/+9
| | | | llvm-svn: 183053
* Add a comment and some tests including the NULL byte.Eric Christopher2013-05-301-0/+9
| | | | llvm-svn: 182900
* ArrayRef-ize MD5 and clean up a few variable names.Eric Christopher2013-05-241-0/+42
Add a stringize method to make dumping a bit easier, and add a testcase exercising a few different paths. llvm-svn: 182692
OpenPOWER on IntegriCloud