|
LLVM 22.0.0git
|
#include "llvm/Support/MD5.h"
Classes | |
| struct | MD5Result |
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. | |
Static Public Member Functions | |
| static LLVM_ABI void | stringifyResult (MD5Result &Result, SmallVectorImpl< char > &Str) |
Translates the bytes in Res to a hex string that is deposited into Str. | |
| static LLVM_ABI MD5Result | hash (ArrayRef< uint8_t > Data) |
| Computes the hash for a given bytes. | |
|
default |
References llvm::Data, and LLVM_ABI.
Referenced by hash().
| MD5::MD5Result MD5::final | ( | ) |
| void 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 234 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().
|
static |
| MD5::MD5Result MD5::result | ( | ) |
|
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 287 of file MD5.cpp.
References llvm::toHex().
Referenced by computeHashString(), llvm::getUniqueInternalLinkagePostfix(), and llvm::getUniqueModuleId().
Updates the hash for the byte stream provided.
Incrementally add the bytes in Data to the hash.
Definition at line 189 of file MD5.cpp.
References llvm::ArrayRef(), llvm::Data, Ptr, 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().
| void MD5::update | ( | StringRef | Str | ) |
| MD5_u32plus llvm::MD5::a = 0x67452301 |
| MD5_u32plus llvm::MD5::b = 0xefcdab89 |
| MD5_u32plus llvm::MD5::block[16] |
| MD5_u32plus llvm::MD5::c = 0x98badcfe |
| MD5_u32plus llvm::MD5::d = 0x10325476 |
| MD5_u32plus llvm::MD5::hi = 0 |
| MD5_u32plus llvm::MD5::lo = 0 |