Lines Matching refs:htobe32
50 h.key_num_bits = htobe32(n32);
52 h.n0inv = htobe32(n32);
76 h.version_major = htobe32(AVB_FOOTER_VERSION_MAJOR);
77 h.version_minor = htobe32(AVB_FOOTER_VERSION_MINOR);
101 h.version_minor = htobe32(AVB_FOOTER_VERSION_MINOR + 1);
111 bad.version_major = htobe32(AVB_FOOTER_VERSION_MAJOR + 1);
126 h.kernel_cmdline_length = htobe32(40);
129 h.flags = htobe32(n32);
149 bad.kernel_cmdline_length = htobe32(41);
165 h.partition_name_len = htobe32(10);
166 h.salt_len = htobe32(10);
167 h.root_digest_len = htobe32(10);
172 h.dm_verity_version = htobe32(n32);
180 h.data_block_size = htobe32(n32);
182 h.hash_block_size = htobe32(n32);
184 h.fec_num_roots = htobe32(n32);
228 bad.partition_name_len = htobe32(30);
233 bad.salt_len = htobe32(30);
238 bad.root_digest_len = htobe32(30);
252 h.partition_name_len = htobe32(10);
253 h.salt_len = htobe32(10);
254 h.digest_len = htobe32(10);
271 bad.partition_name_len = htobe32(30);
276 bad.salt_len = htobe32(30);
281 bad.digest_len = htobe32(30);
295 h.rollback_index_location = htobe32(42);
296 h.partition_name_len = htobe32(16);
297 h.public_key_len = htobe32(17);
314 bad.rollback_index_location = htobe32(0);
319 bad.partition_name_len = htobe32(24);
324 bad.public_key_len = htobe32(25);
516 TEST_F(UtilTest, htobe32) {
517 EXPECT_EQ(avb_htobe32(0x12345678), htobe32(0x12345678));