Lines Matching refs:hex
451 status_t HexToStr(const std::string& hex, std::string& str) { in HexToStr() argument
455 for (size_t i = 0; i < hex.size(); i++) { in HexToStr()
457 switch (hex[i]) { in HexToStr()
494 status_t StrToHex(const std::string& str, std::string& hex) { in StrToHex() argument
495 hex.clear(); in StrToHex()
497 hex.push_back(kLookup[(str[i] & 0xF0) >> 4]); in StrToHex()
498 hex.push_back(kLookup[str[i] & 0x0F]); in StrToHex()
503 status_t StrToHex(const KeyBuffer& str, KeyBuffer& hex) { in StrToHex() argument
504 hex.clear(); in StrToHex()
506 hex.push_back(kLookup[(str.data()[i] & 0xF0) >> 4]); in StrToHex()
507 hex.push_back(kLookup[str.data()[i] & 0x0F]); in StrToHex()