Home
last modified time | relevance | path

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

/aosp14/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()
/aosp14/system/core/fs_mgr/libfs_avb/
H A Dfs_avb_util.cpp127 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 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
H A Davb_util.cpp170 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 Dfs_avb.cpp80 digest = BytesToHex(hasher.finalize(), Hasher::DIGEST_SIZE); in CalculateVbmetaDigest()
/aosp14/system/core/init/
H A Dfscrypt_init_extensions.cpp125 BytesToHex(policy.key_raw_ref, &ref_hex); in EnsurePolicyOrLog()