Home
last modified time | relevance | path

Searched refs:BytesToHex (Results 1 – 25 of 26) sorted by relevance

12

/aosp12/system/core/fs_mgr/libfs_avb/tests/
H A Dutil_test.cpp31 using android::fs_mgr::BytesToHex;
126 TEST(BasicUtilTest, BytesToHex) { in TEST() argument
129 EXPECT_EQ("0102", BytesToHex((uint8_t*)bytes, 2)); in TEST()
130 EXPECT_EQ("01020304", BytesToHex((uint8_t*)bytes, 4)); in TEST()
131 EXPECT_EQ("0102030405060708", BytesToHex((uint8_t*)bytes, 8)); in TEST()
132 EXPECT_EQ("0102030405060708090a0b0c0d0e0f10", BytesToHex((uint8_t*)bytes, 16)); in TEST()
134 EXPECT_EQ("01", BytesToHex((uint8_t*)bytes, 1)); in TEST()
135 EXPECT_EQ("010203", BytesToHex((uint8_t*)bytes, 3)); in TEST()
136 EXPECT_EQ("0102030405", BytesToHex((uint8_t*)bytes, 5)); in TEST()
/aosp12/system/nfc/src/fuzzers/
H A Dfuzz_utils.cc3 std::string BytesToHex(const uint8_t* data, size_t size) { in BytesToHex() function
16 std::string BytesToHex(const bytes_t& data) { in BytesToHex() function
17 return BytesToHex(&data[0], data.size()); in BytesToHex()
101 BytesToHex(Data, Size).c_str()); in LLVMFuzzerCustomMutator()
/aosp12/system/nfc/src/fuzzers/nci/
H A Dhal.cc19 BytesToHex(p_data, data_len).c_str()); in hal_inject_data()
80 FUZZLOG("HAL_OP: type=write, data=%s", BytesToHex(p_data, data_len).c_str()); in HalWrite()
95 BytesToHex(p_core_init_rsp_params, data_len).c_str()); in HalCoreInitialized()
H A Dstubs.cc33 BytesToHex(p_sensf_res_buf, sensf_res_buf_size).c_str()); in rw_t3t_handle_nci_poll_ntf()
H A Dnci.cc19 BytesToHex(data, len).c_str()); in nfc_vs_cback()
/aosp12/system/nfc/src/fuzzers/inc/
H A Dfuzz_cmn.h27 std::string BytesToHex(const uint8_t* data, size_t size);
28 std::string BytesToHex(const bytes_t& data);
/aosp12/system/core/fs_mgr/libfs_avb/
H A Davb_util.cpp179 hash_desc->salt = BytesToHex(desc_salt, hash_desc->salt_len); in GetHashDescriptor()
182 hash_desc->digest = BytesToHex(desc_digest, hash_desc->digest_len); in GetHashDescriptor()
238 hashtree_desc->salt = BytesToHex(desc_salt, hashtree_desc->salt_len); in GetHashtreeDescriptor()
241 hashtree_desc->root_digest = BytesToHex(desc_digest, hashtree_desc->root_digest_len); in GetHashtreeDescriptor()
H A Dutil.h59 std::string BytesToHex(const uint8_t* bytes, size_t bytes_len);
H A Dutil.cpp75 std::string BytesToHex(const uint8_t* bytes, size_t bytes_len) { in BytesToHex() function
/aosp12/system/apex/apexd/
H A Dapex_file.cpp184 std::string BytesToHex(const uint8_t* bytes, size_t bytes_len) { in BytesToHex() function
198 return BytesToHex(desc_salt, desc.salt_len); in GetSalt()
206 return BytesToHex(desc_digest, desc.root_digest_len); in GetDigest()
/aosp12/system/nfc/src/fuzzers/ce/
H A Dstubs.cc34 FUZZLOG("conn_id=%d, data=%s", conn_id, BytesToHex(p, len).c_str()); in NFC_SendData()
H A Dt3t.cc115 BytesToHex(*it).c_str()); in Fuzz_Run()
H A Dt4t.cc118 BytesToHex(*it).c_str()); in Fuzz_Run()
/aosp12/system/nfc/src/fuzzers/rw/
H A Dstubs.cc31 FUZZLOG("conn_id=%d, data=%s", conn_id, BytesToHex(p, len).c_str()); in NFC_SendData()
H A Dmfc.cc146 BytesToHex(*it).c_str()); in Fuzz_Run()
H A Dt4t.cc154 BytesToHex(*it).c_str()); in Fuzz_Run()
H A Dt2t.cc194 BytesToHex(*it).c_str()); in Fuzz_Run()
H A Dt1t.cc235 BytesToHex(*it).c_str()); in Fuzz_Run()
H A Dt5t.cc312 BytesToHex(*it).c_str()); in Fuzz_Run()
H A Dt3t.cc281 BytesToHex(*it).c_str()); in Fuzz_Run()
/aosp12/system/extras/libfscrypt/include/fscrypt/
H A Dfscrypt.h48 void BytesToHex(const std::string& bytes, std::string* hex);
/aosp12/system/nfc/src/fuzzers/llcp/
H A Dstubs.cc15 FUZZLOG("conn_id=%d, data=%s", conn_id, BytesToHex(p, len).c_str()); in NFC_SendData()
H A Dllcp.cc65 BytesToHex(*it).c_str()); in Fuzz_Run()
/aosp12/system/extras/libfscrypt/
H A Dfscrypt.cpp118 void BytesToHex(const std::string& bytes, std::string* hex) { in BytesToHex() function
277 BytesToHex(policy.key_raw_ref, &ref_hex); in PolicyDebugString()
/aosp12/system/core/init/
H A Dfscrypt_init_extensions.cpp125 BytesToHex(policy.key_raw_ref, &ref_hex); in EnsurePolicyOrLog()

12