/aosp12/system/core/fs_mgr/libfs_avb/tests/ |
H A D | util_test.cpp | 31 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 D | fuzz_utils.cc | 3 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 D | hal.cc | 19 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 D | stubs.cc | 33 BytesToHex(p_sensf_res_buf, sensf_res_buf_size).c_str()); in rw_t3t_handle_nci_poll_ntf()
|
H A D | nci.cc | 19 BytesToHex(data, len).c_str()); in nfc_vs_cback()
|
/aosp12/system/nfc/src/fuzzers/inc/ |
H A D | fuzz_cmn.h | 27 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 D | avb_util.cpp | 179 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 D | util.h | 59 std::string BytesToHex(const uint8_t* bytes, size_t bytes_len);
|
H A D | util.cpp | 75 std::string BytesToHex(const uint8_t* bytes, size_t bytes_len) { in BytesToHex() function
|
/aosp12/system/apex/apexd/ |
H A D | apex_file.cpp | 184 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 D | stubs.cc | 34 FUZZLOG("conn_id=%d, data=%s", conn_id, BytesToHex(p, len).c_str()); in NFC_SendData()
|
H A D | t3t.cc | 115 BytesToHex(*it).c_str()); in Fuzz_Run()
|
H A D | t4t.cc | 118 BytesToHex(*it).c_str()); in Fuzz_Run()
|
/aosp12/system/nfc/src/fuzzers/rw/ |
H A D | stubs.cc | 31 FUZZLOG("conn_id=%d, data=%s", conn_id, BytesToHex(p, len).c_str()); in NFC_SendData()
|
H A D | mfc.cc | 146 BytesToHex(*it).c_str()); in Fuzz_Run()
|
H A D | t4t.cc | 154 BytesToHex(*it).c_str()); in Fuzz_Run()
|
H A D | t2t.cc | 194 BytesToHex(*it).c_str()); in Fuzz_Run()
|
H A D | t1t.cc | 235 BytesToHex(*it).c_str()); in Fuzz_Run()
|
H A D | t5t.cc | 312 BytesToHex(*it).c_str()); in Fuzz_Run()
|
H A D | t3t.cc | 281 BytesToHex(*it).c_str()); in Fuzz_Run()
|
/aosp12/system/extras/libfscrypt/include/fscrypt/ |
H A D | fscrypt.h | 48 void BytesToHex(const std::string& bytes, std::string* hex);
|
/aosp12/system/nfc/src/fuzzers/llcp/ |
H A D | stubs.cc | 15 FUZZLOG("conn_id=%d, data=%s", conn_id, BytesToHex(p, len).c_str()); in NFC_SendData()
|
H A D | llcp.cc | 65 BytesToHex(*it).c_str()); in Fuzz_Run()
|
/aosp12/system/extras/libfscrypt/ |
H A D | fscrypt.cpp | 118 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 D | fscrypt_init_extensions.cpp | 125 BytesToHex(policy.key_raw_ref, &ref_hex); in EnsurePolicyOrLog()
|