11 static const MD5Result
val;
57 constexpr
char hex_bytes[] =
"0123456789abcdef";
59 ret.resize(
sizeof(
bytes) << 1);
60 for (
size_t i = 0; i <
sizeof(
bytes); ++i) {
61 ret[i << 1] = hex_bytes[bytes[i] >> 4];
62 ret[(i << 1) + 1] = hex_bytes[
bytes[i] & 0x0F];
73 const char*
p =
reinterpret_cast<const char*
>(&
bytes[0]);
80 switch (hexy.size()) {
87 for (
size_t i = 0; i != 16; ++i)
91 throw "String of illegal length given to MD5Result::fromHexifiedString";
99 return (*
this != invalidResult());
111 return std::lexicographical_compare(
131 using md5_byte_t =
unsigned char;
132 md5_byte_t
const*
data =
reinterpret_cast<md5_byte_t
const*
>(s.data());
133 MD5_Update(&
context_, const_cast<md5_byte_t*>(data), s.size());
void append(std::string const &s)
std::string toString() const
void set_to_default(MD5Result &val)
void fromHexifiedString(std::string const &s)
constexpr bool operator<(exempt_ptr< E >, exempt_ptr< E >)
constexpr bool operator==(exempt_ptr< E >, exempt_ptr< E >) noexcept
std::string compactForm() const