3 #include "cetlib/MD5Digest.h" 4 #include "cetlib/container_algorithms.h" 7 std::string
const invalid{cet::MD5Result{}.compactForm()};
14 if (hash.size() == 16) {
18 if (hash.size() == 0) {
22 if (hash.size() == 32) {
24 md5.fromHexifiedString(hash);
25 hash = md5.compactForm();
29 <<
"art::Hash<> instance with data in illegal state:\n" 30 << hash <<
"\nPlease report this to the core framework developers";
37 cet::copy_all(hash, temp.bytes);
38 return temp.toString();
std::string const & InvalidHash()
std::string hash_to_string(std::string const &hash)
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
void fixup(std::string &hash)