LLVM API Documentation
#include <MD5.h>
Public Types | |
typedef uint8_t | MD5Result [16] |
Public Member Functions | |
MD5 () | |
void | update (ArrayRef< uint8_t > Data) |
Updates the hash for the byte stream provided. More... | |
void | update (StringRef Str) |
Updates the hash for the StringRef provided. More... | |
void | final (MD5Result &result) |
Finishes off the hash and puts the result in result. More... | |
Static Public Member Functions | |
static void | stringifyResult (MD5Result &Res, SmallString< 32 > &Str) |
Translates the bytes in Res to a hex string that is deposited into Str . The result will be of length 32. More... | |
void llvm::MD5::final | ( | MD5Result & | result | ) |
Finishes off the hash and puts the result in result.
Finish the hash and place the resulting hash into result
.
result | is assumed to be a minimum of 16-bytes in size. |
Definition at line 232 of file MD5.cpp.
References llvm::LibFunc::free, and llvm::Intrinsic::memset.
Referenced by llvm::DIEHash::computeCUSignature(), llvm::DIEHash::computeDIEODRSignature(), and llvm::DIEHash::computeTypeSignature().
|
static |
Translates the bytes in Res
to a hex string that is deposited into Str
. The result will be of length 32.
Definition at line 280 of file MD5.cpp.
References llvm::format().
void llvm::MD5::update | ( | ArrayRef< uint8_t > | Data | ) |
Updates the hash for the byte stream provided.
Incrementally add the bytes in Data
to the hash.
Definition at line 187 of file MD5.cpp.
References llvm::ArrayRef< T >::data(), llvm::LibFunc::free, llvm::Intrinsic::memcpy, and llvm::ArrayRef< T >::size().
Referenced by update().
void llvm::MD5::update | ( | StringRef | Str | ) |
Updates the hash for the StringRef provided.
Add the bytes in the StringRef Str
to the hash.
Definition at line 225 of file MD5.cpp.
References llvm::StringRef::data(), llvm::StringRef::size(), and update().