MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / octet2hex

Function octet2hex

sql/password.c:338–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336*/
337
338char *octet2hex(char *to, const char *str, uint len)
339{
340 const char *str_end= str + len;
341 for (; str != str_end; ++str)
342 {
343 *to++= _dig_vec_upper[((uchar) *str) >> 4];
344 *to++= _dig_vec_upper[((uchar) *str) & 0x0F];
345 }
346 *to= '\0';
347 return to;
348}
349
350
351/*

Callers 5

val_str_asciiMethod · 0.85
make_password_from_saltFunction · 0.85
str_to_hexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected