LLVM: llvm::MD5 Class Reference (original) (raw)
#include "[llvm/Support/MD5.h](MD5%5F8h%5Fsource.html)"
| Public Member Functions | |
|---|---|
| LLVM_ABI | MD5 () |
| LLVM_ABI void | update (ArrayRef< uint8_t > Data) |
| Updates the hash for the byte stream provided. | |
| LLVM_ABI void | update (StringRef Str) |
| Updates the hash for the StringRef provided. | |
| LLVM_ABI void | final (MD5Result &Result) |
| Finishes off the hash and puts the result in result. | |
| LLVM_ABI MD5Result | final () |
| Finishes off the hash, and returns the 16-byte hash data. | |
| LLVM_ABI MD5Result | result () |
| Finishes off the hash, and returns the 16-byte hash data. |
Definition at line 42 of file MD5.h.
◆ final() [1/2]
Finishes off the hash, and returns the 16-byte hash data.
Definition at line 263 of file MD5.cpp.
◆ final() [2/2]
Finishes off the hash and puts the result in result.
Finish the hash and place the resulting hash into result.
Parameters
| Result | is assumed to be a minimum of 16-bytes in size. |
|---|
Definition at line 233 of file MD5.cpp.
References llvm::ArrayRef(), and llvm::support::endian::write32le().
Referenced by llvm::object::CompressedOffloadBundle::compress(), computeHashString(), llvm::object::CompressedOffloadBundle::decompress(), llvm::emitAMDGPUPrintfCall(), llvm::getUniqueInternalLinkagePostfix(), llvm::getUniqueModuleId(), hash(), llvm::DwarfDebug::makeTypeSignature(), llvm::sys::fs::md5_contents(), llvm::MD5Hash(), and llvm::MCContext::setGenDwarfRootFile().
◆ hash()
◆ result()
Finishes off the hash, and returns the 16-byte hash data.
This is suitable for getting the MD5 at any time without invalidating the internal state, so that more calls can be made into update.
Definition at line 269 of file MD5.cpp.
◆ stringifyResult()
◆ update() [1/2]
Updates the hash for the byte stream provided.
Incrementally add the bytes in Data to the hash.
Definition at line 188 of file MD5.cpp.
References llvm::ArrayRef(), llvm::Data, and Size.
Referenced by llvm::object::CompressedOffloadBundle::compress(), computeHashString(), llvm::object::CompressedOffloadBundle::decompress(), llvm::emitAMDGPUPrintfCall(), llvm::getUniqueInternalLinkagePostfix(), llvm::getUniqueModuleId(), hash(), llvm::DwarfDebug::makeTypeSignature(), llvm::sys::fs::md5_contents(), llvm::MD5Hash(), llvm::MCContext::setGenDwarfRootFile(), and update().
◆ update() [2/2]
◆ a
Definition at line 97 of file MD5.h.
◆ b
Definition at line 98 of file MD5.h.
◆ block
◆ buffer
◆ c
Definition at line 99 of file MD5.h.
◆ d
◆ hi
◆ lo
The documentation for this class was generated from the following files: