45 static const char *hex_lower =
"0123456789abcdef";
46 for (uint i = 0; i < len; ++i) {
47 const uint offset = 2 * i;
48 to[offset] = hex_lower[
str[i] >> 4];
49 to[offset + 1] = hex_lower[
str[i] & 0x0F];
Some integer typedefs for easier portability.
int compute_md5_hash(char *digest, const char *buf, size_t len)
Wrapper function to compute MD5 message digest.
Definition: my_md5.cc:73
static void array_to_hex(char *to, const unsigned char *str, uint len)
Definition: my_md5.h:44
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1117
Definition: buf0block_hint.cc:30