Lines Matching refs:hex
453 status_t HexToStr(const std::string& hex, std::string& str) { in HexToStr() argument
457 for (size_t i = 0; i < hex.size(); i++) { in HexToStr()
459 switch (hex[i]) { in HexToStr()
496 status_t StrToHex(const std::string& str, std::string& hex) { in StrToHex() argument
497 hex.clear(); in StrToHex()
499 hex.push_back(kLookup[(str[i] & 0xF0) >> 4]); in StrToHex()
500 hex.push_back(kLookup[str[i] & 0x0F]); in StrToHex()
505 status_t StrToHex(const KeyBuffer& str, KeyBuffer& hex) { in StrToHex() argument
506 hex.clear(); in StrToHex()
508 hex.push_back(kLookup[(str.data()[i] & 0xF0) >> 4]); in StrToHex()
509 hex.push_back(kLookup[str.data()[i] & 0x0F]); in StrToHex()