Home
last modified time | relevance | path

Searched refs:encodeHex (Results 1 – 3 of 3) sorted by relevance

/hardware/interfaces/identity/support/include/android/hardware/identity/support/
DIdentityCredentialSupport.h55 string encodeHex(const string& str);
57 string encodeHex(const vector<uint8_t>& data);
59 string encodeHex(const uint8_t* data, size_t dataLen);
/hardware/interfaces/identity/support/tests/
DIdentityCredentialSupportTest.cpp37 TEST(IdentityCredentialSupport, encodeHex) { in TEST() argument
38 EXPECT_EQ("", support::encodeHex(vector<uint8_t>({}))); in TEST()
39 EXPECT_EQ("01", support::encodeHex(vector<uint8_t>({1}))); in TEST()
41 support::encodeHex( in TEST()
43 EXPECT_EQ("0102ffe060", support::encodeHex(vector<uint8_t>({1, 2, 255, 224, 96}))); in TEST()
/hardware/interfaces/identity/support/src/
DIdentityCredentialSupport.cpp91 string encodeHex(const uint8_t* data, size_t dataLen) { in encodeHex() function
106 string encodeHex(const string& str) { in encodeHex() function
107 return encodeHex(reinterpret_cast<const uint8_t*>(str.data()), str.size()); in encodeHex()
110 string encodeHex(const vector<uint8_t>& data) { in encodeHex() function
111 return encodeHex(data.data(), data.size()); in encodeHex()