28 #ifndef LLVM_SUPPORT_MD5_H
29 #define LLVM_SUPPORT_MD5_H
32 #include "llvm/Support/DataTypes.h"
37 template <
typename T>
class ArrayRef;
81 using namespace llvm::support;
82 return endian::read<uint64_t, little, unaligned>(Result);
uint64_t MD5Hash(StringRef Str)
Helper to compute and return lower 64 bits of the given string's MD5 hash.
void update(ArrayRef< uint8_t > Data)
Updates the hash for the byte stream provided.
static void stringifyResult(MD5Result &Result, SmallString< 32 > &Str)
Translates the bytes in Res to a hex string that is deposited into Str.
static std::array< uint8_t, 16 > hash(ArrayRef< uint8_t > Data)
Computes the hash for a given bytes.
void final(MD5Result &Result)
Finishes off the hash and puts the result in result.
std::string Hash(const Unit &U)
StringRef - Represent a constant reference to a string, i.e.