Searched refs:BytesToHex (Results 1 – 7 of 7) sorted by relevance
/aosp14/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()
|
/aosp14/system/core/fs_mgr/libfs_avb/ |
H A D | fs_avb_util.cpp | 127 hash_desc->salt = BytesToHex(desc_salt, hash_desc->salt_len); in GetHashDescriptor() 130 hash_desc->digest = BytesToHex(desc_digest, hash_desc->digest_len); in GetHashDescriptor()
|
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
|
H A D | avb_util.cpp | 170 hashtree_desc->salt = BytesToHex(desc_salt, hashtree_desc->salt_len); in GetHashtreeDescriptor() 173 hashtree_desc->root_digest = BytesToHex(desc_digest, hashtree_desc->root_digest_len); in GetHashtreeDescriptor()
|
H A D | fs_avb.cpp | 80 digest = BytesToHex(hasher.finalize(), Hasher::DIGEST_SIZE); in CalculateVbmetaDigest()
|
/aosp14/system/core/init/ |
H A D | fscrypt_init_extensions.cpp | 125 BytesToHex(policy.key_raw_ref, &ref_hex); in EnsurePolicyOrLog()
|