Lines Matching refs:TEST_EQ
30 TEST_EQ(EXPECTED_GUID_SIZE, in test_struct_packing()
33 TEST_EQ(EXPECTED_VB2_STRUCT_COMMON_SIZE, in test_struct_packing()
36 TEST_EQ(EXPECTED_VB2_PACKED_KEY_SIZE, in test_struct_packing()
39 TEST_EQ(EXPECTED_VB2_SIGNATURE_SIZE, in test_struct_packing()
42 TEST_EQ(EXPECTED_VB2_KEYBLOCK_SIZE, in test_struct_packing()
45 TEST_EQ(EXPECTED_VB2_FW_PREAMBLE_SIZE, in test_struct_packing()
74 TEST_EQ(0, strcmp(vb2_common_desc(c), test_desc), "vb2_common_desc()"); in test_common_header_functions()
75 TEST_EQ(0, strcmp(vb2_common_desc(c2), ""), "vb2_common_desc() empty"); in test_common_header_functions()
83 TEST_EQ(vb2_verify_common_header(cbuf, sizeof(cbuf)), in test_common_header_functions()
89 TEST_EQ(vb2_verify_common_header(cbuf, sizeof(cbuf)), in test_common_header_functions()
95 TEST_EQ(vb2_verify_common_header(cbuf, sizeof(cbuf)), in test_common_header_functions()
101 TEST_EQ(vb2_verify_common_header(cbuf, sizeof(cbuf)), in test_common_header_functions()
107 TEST_EQ(vb2_verify_common_header(cbuf, sizeof(cbuf)), in test_common_header_functions()
113 TEST_EQ(vb2_verify_common_header(cbuf, sizeof(cbuf)), in test_common_header_functions()
119 TEST_EQ(vb2_verify_common_header(cbuf, sizeof(cbuf)), in test_common_header_functions()
125 TEST_EQ(vb2_verify_common_header(cbuf, sizeof(cbuf)), in test_common_header_functions()
134 TEST_EQ(m, c->total_size - 4, " new minimum"); in test_common_header_functions()
139 TEST_EQ(m, desc_end + 4, " new minimum"); in test_common_header_functions()
142 TEST_EQ(vb2_verify_common_member(cbuf, &m, c->total_size - 8, -4), in test_common_header_functions()
147 TEST_EQ(vb2_verify_common_member(cbuf, &m, c->total_size - 7, 4), in test_common_header_functions()
152 TEST_EQ(vb2_verify_common_member(cbuf, &m, c->total_size - 8, 5), in test_common_header_functions()
157 TEST_EQ(vb2_verify_common_member(cbuf, &m, desc_end - 4, 4), in test_common_header_functions()
162 TEST_EQ(vb2_verify_common_member(cbuf, &m, desc_end, 4), in test_common_header_functions()
167 TEST_EQ(vb2_verify_common_member(cbuf, &m, c->total_size - 4, 8), in test_common_header_functions()
175 TEST_EQ(m, sizeof(cbuf), " new minimum"); in test_common_header_functions()
178 TEST_EQ(vb2_verify_common_subobject(cbuf, &m, desc_end), in test_common_header_functions()
184 TEST_EQ(vb2_verify_common_subobject(cbuf, &m, desc_end), in test_common_header_functions()
194 TEST_EQ(vb2_sig_size(VB2_SIG_INVALID, VB2_HASH_SHA256), 0, in test_sig_size()
197 TEST_EQ(vb2_sig_size(VB2_SIG_RSA2048, VB2_HASH_INVALID), 0, in test_sig_size()
200 TEST_EQ(vb2_sig_size(VB2_SIG_RSA2048, VB2_HASH_SHA256), 2048 / 8, in test_sig_size()
202 TEST_EQ(vb2_sig_size(VB2_SIG_RSA4096, VB2_HASH_SHA256), 4096 / 8, in test_sig_size()
204 TEST_EQ(vb2_sig_size(VB2_SIG_RSA8192, VB2_HASH_SHA512), 8192 / 8, in test_sig_size()
207 TEST_EQ(vb2_sig_size(VB2_SIG_NONE, VB2_HASH_SHA1), in test_sig_size()
209 TEST_EQ(vb2_sig_size(VB2_SIG_NONE, VB2_HASH_SHA256), in test_sig_size()
211 TEST_EQ(vb2_sig_size(VB2_SIG_NONE, VB2_HASH_SHA512), in test_sig_size()
243 TEST_EQ(vb2_verify_data(test_data, sizeof(test_data), sig, &pubk, &wb), in test_verify_hash()
300 TEST_EQ(vb2_verify_keyblock(kbuf, buf_size, &pubk3, &wb), in test_verify_keyblock()
306 TEST_EQ(vb2_verify_keyblock(kbuf, buf_size, &pubk, &wb), in test_verify_keyblock()
312 TEST_EQ(vb2_verify_keyblock(kbuf, buf_size, &pubk, &wb), in test_verify_keyblock()
318 TEST_EQ(vb2_verify_keyblock(kbuf, buf_size, &pubk, &wb), in test_verify_keyblock()
334 TEST_EQ(vb2_verify_keyblock(kbuf, buf_size, &pubk, &wb), in test_verify_keyblock()
340 TEST_EQ(vb2_verify_keyblock(kbuf, buf_size, &pubk, &wb), in test_verify_keyblock()
347 TEST_EQ(vb2_verify_keyblock(kbuf, buf_size, &pubk, &wb), in test_verify_keyblock()
354 TEST_EQ(vb2_verify_keyblock(kbuf, buf_size, &pubk, &wb), in test_verify_keyblock()
361 TEST_EQ(vb2_verify_keyblock(kbuf, buf_size, &pubk, &wb), in test_verify_keyblock()
367 TEST_EQ(vb2_verify_keyblock(kbuf, buf_size, &pubk, &wb), in test_verify_keyblock()
437 TEST_EQ(vb2_verify_fw_preamble(pre, buf_size, &pubk, &wb), in test_verify_fw_preamble()
443 TEST_EQ(vb2_verify_fw_preamble(pre, buf_size, &pubk, &wb), in test_verify_fw_preamble()
449 TEST_EQ(vb2_verify_fw_preamble(pre, buf_size, &pubk, &wb), in test_verify_fw_preamble()
465 TEST_EQ(vb2_verify_fw_preamble(pre, buf_size, &pubk, &wb), in test_verify_fw_preamble()
472 TEST_EQ(vb2_verify_fw_preamble(pre, buf_size, &pubk, &wb), in test_verify_fw_preamble()
479 TEST_EQ(vb2_verify_fw_preamble(pre, buf_size, &pubk, &wb), in test_verify_fw_preamble()
485 TEST_EQ(vb2_verify_fw_preamble(pre, buf_size, &pubk, &wb), in test_verify_fw_preamble()
492 TEST_EQ(vb2_verify_fw_preamble(pre, buf_size, &pubk, &wb), in test_verify_fw_preamble()
499 TEST_EQ(vb2_verify_fw_preamble(pre, buf_size, &pubk, &wb), in test_verify_fw_preamble()
505 TEST_EQ(vb2_verify_fw_preamble(pre, buf_size, &pubk, &wb), in test_verify_fw_preamble()