Home
last modified time | relevance | path

Searched refs:TEST_SUCC (Results 1 – 23 of 23) sorted by relevance

/external/vboot_reference/tests/
Dvb21_host_key_tests.c46 TEST_SUCC(vb2_private_key_read_pem(&key, pemfile), "Read pem - good"); in private_key_tests()
61 TEST_SUCC(vb2_private_key_read_pem(&key, pemfile), "Read pem - good2"); in private_key_tests()
62 TEST_SUCC(vb2_private_key_set_desc(key, testdesc), "Set desc"); in private_key_tests()
66 TEST_SUCC(vb2_private_key_set_desc(key, NULL), "Clear desc"); in private_key_tests()
68 TEST_SUCC(vb2_private_key_set_desc(key, testdesc), "Set desc"); in private_key_tests()
71 TEST_SUCC(vb2_private_key_read_pem(&key, pemfile), "Read pem - good3"); in private_key_tests()
72 TEST_SUCC(vb2_private_key_set_desc(key, testdesc), "Set desc"); in private_key_tests()
84 TEST_SUCC(vb2_private_key_write(key, testfile), "Write key good"); in private_key_tests()
85 TEST_SUCC(vb2_private_key_read(&k2, testfile), "Read key good"); in private_key_tests()
93 TEST_SUCC(vb2_read_file(testfile, &buf, &bufsize), "Read key raw"); in private_key_tests()
[all …]
Dvb21_host_sig_tests.c62 TEST_SUCC(vb2_private_key_read_pem(&prik, pemfile), "Read private key"); in sig_tests()
68 TEST_SUCC(vb2_public_key_read_keyb(&pubk, keybfile), "Read pub key"); in sig_tests()
73 TEST_SUCC(vb2_private_key_hash(&prihash, combo->hash_alg), in sig_tests()
75 TEST_SUCC(vb2_public_key_hash(&pubhash, combo->hash_alg), in sig_tests()
82 TEST_SUCC(vb2_sign_data(&sig, test_data, test_size, prik, NULL), in sig_tests()
88 TEST_SUCC(vb2_sig_size_for_key(&size, prik, NULL), "Sig size"); in sig_tests()
90 TEST_SUCC(vb2_verify_data(test_data, test_size, sig, pubk, &wb), in sig_tests()
94 TEST_SUCC(vb2_sign_data(&sig, test_data, test_size, prik, in sig_tests()
100 TEST_SUCC(vb2_sign_data(&sig, test_data, test_size, prik, ""), in sig_tests()
103 TEST_SUCC(vb2_sig_size_for_key(&size, prik, ""), "Sig size"); in sig_tests()
[all …]
Dvb21_host_keyblock_tests.c40 TEST_SUCC(vb2_public_key_read_keyb(&pubk2048, fname), in keyblock_tests()
46 TEST_SUCC(vb2_public_key_read_keyb(&pubk4096, fname), in keyblock_tests()
52 TEST_SUCC(vb2_public_key_read_keyb(&pubk8192, fname), in keyblock_tests()
58 TEST_SUCC(vb2_private_key_read_pem(&prik4096, fname), in keyblock_tests()
65 TEST_SUCC(vb2_private_key_read_pem(&prik8192, fname), in keyblock_tests()
71 TEST_SUCC(vb2_private_key_hash(&prikhash, VB2_HASH_SHA512), in keyblock_tests()
74 TEST_SUCC(vb2_public_key_hash(&pubkhash, VB2_HASH_SHA512), in keyblock_tests()
77 TEST_SUCC(vb2_public_key_pack(&pakgood, pubk2048), "Test packed key"); in keyblock_tests()
81 TEST_SUCC(vb2_keyblock_create(&kb, pubk2048, prik, 1, 0x1234, NULL), in keyblock_tests()
84 TEST_SUCC(vb2_verify_keyblock(kb, kb->c.total_size, pubk4096, &wb), in keyblock_tests()
[all …]
Dvb2_secdata_tests.c50 TEST_SUCC(vb2_secdata_create(&c), "Create"); in secdata_test()
51 TEST_SUCC(vb2_secdata_check_crc(&c), "Check created CRC"); in secdata_test()
52 TEST_SUCC(vb2_secdata_init(&c), "Init created CRC"); in secdata_test()
66 TEST_SUCC(vb2_secdata_get(&c, VB2_SECDATA_FLAGS, &v), "Get flags"); in secdata_test()
69 TEST_SUCC(vb2_secdata_set(&c, VB2_SECDATA_FLAGS, 0x12), "Set flags"); in secdata_test()
71 TEST_SUCC(vb2_secdata_set(&c, VB2_SECDATA_FLAGS, 0x12), "Set flags 2"); in secdata_test()
73 TEST_SUCC(vb2_secdata_get(&c, VB2_SECDATA_FLAGS, &v), "Get flags 2"); in secdata_test()
79 TEST_SUCC(vb2_secdata_get(&c, VB2_SECDATA_VERSIONS, &v), in secdata_test()
83 TEST_SUCC(vb2_secdata_set(&c, VB2_SECDATA_VERSIONS, 0x123456ff), in secdata_test()
86 TEST_SUCC(vb2_secdata_set(&c, VB2_SECDATA_VERSIONS, 0x123456ff), in secdata_test()
[all …]
Dvb21_common_tests.c77 TEST_SUCC(vb2_verify_common_header(cbuf, sizeof(cbuf)), in test_common_header_functions()
132 TEST_SUCC(vb2_verify_common_member(cbuf, &m, c->total_size - 8, 4), in test_common_header_functions()
137 TEST_SUCC(vb2_verify_common_member(cbuf, &m, desc_end, 4), in test_common_header_functions()
173 TEST_SUCC(vb2_verify_common_subobject(cbuf, &m, desc_end), in test_common_header_functions()
229 TEST_SUCC(vb2_private_key_hash(&prik, VB2_HASH_SHA256), in test_verify_hash()
231 TEST_SUCC(vb2_public_key_hash(&pubk, VB2_HASH_SHA256), in test_verify_hash()
235 TEST_SUCC(vb2_sign_data(&sig, test_data, sizeof(test_data), prik, NULL), in test_verify_hash()
238 TEST_SUCC(vb2_verify_data(test_data, sizeof(test_data), in test_verify_hash()
266 TEST_SUCC(vb2_public_key_hash(&pubk, VB2_HASH_SHA256), in test_verify_keyblock()
268 TEST_SUCC(vb2_public_key_hash(&pubk2, VB2_HASH_SHA512), in test_verify_keyblock()
[all …]
Dvb2_misc_tests.c88 TEST_SUCC(vb2_init_context(&c), "Init context good"); in init_context_tests()
94 TEST_SUCC(vb2_init_context(&c), "Re-init context good"); in init_context_tests()
147 TEST_SUCC(vb2_read_gbb_header(&cc, &gbbdest), "read gbb header good"); in gbb_tests()
148 TEST_SUCC(memcmp(&gbb, &gbbdest, sizeof(gbb)), "read gbb contents"); in gbb_tests()
166 TEST_SUCC(vb2_read_gbb_header(&cc, &gbbdest), in gbb_tests()
169 TEST_SUCC(vb2_read_gbb_header(&cc, &gbbdest), in gbb_tests()
184 TEST_SUCC(vb2_fw_parse_gbb(&cc), "parse gbb"); in gbb_tests()
292 TEST_SUCC(vb2_check_dev_switch(&cc), "dev mode off"); in dev_switch_tests()
302 TEST_SUCC(vb2_check_dev_switch(&cc), "dev mode on"); in dev_switch_tests()
312 TEST_SUCC(vb2_check_dev_switch(&cc), "dev mode off"); in dev_switch_tests()
[all …]
Dvb21_host_fw_preamble_tests.c50 TEST_SUCC(vb2_public_key_read_keyb(&pubk4096, fname), in preamble_tests()
56 TEST_SUCC(vb2_private_key_read_pem(&prik4096, fname), in preamble_tests()
62 TEST_SUCC(vb2_private_key_hash(&prikhash, VB2_HASH_SHA256), in preamble_tests()
66 TEST_SUCC(vb2_sign_data(hashes + 0, test_data1, sizeof(test_data1), in preamble_tests()
69 TEST_SUCC(vb2_sign_data(hashes + 1, test_data2, sizeof(test_data2), in preamble_tests()
72 TEST_SUCC(vb2_sign_data(hashes + 2, test_data3, sizeof(test_data3), in preamble_tests()
77 TEST_SUCC(vb2_fw_preamble_create(&fp, prik4096, in preamble_tests()
83 TEST_SUCC(vb2_verify_fw_preamble(fp, fp->c.total_size, pubk4096, &wb), in preamble_tests()
Dvb20_common_tests.c89 TEST_SUCC(vb2_verify_member_inside(p, 20, p, 6, 11, 3), in test_helper_functions()
91 TEST_SUCC(vb2_verify_member_inside(p, 20, p+4, 4, 8, 4), in test_helper_functions()
128 TEST_SUCC(vb2_verify_packed_key_inside(&k, sizeof(k)+128, &k), in test_helper_functions()
130 TEST_SUCC(vb2_verify_packed_key_inside(&k - 1, in test_helper_functions()
149 TEST_SUCC(vb2_verify_signature_inside(&s, sizeof(s)+128, &s), in test_helper_functions()
151 TEST_SUCC(vb2_verify_signature_inside(&s - 1, in test_helper_functions()
Dvb2_api_tests.c105 TEST_SUCC(vb2api_secdata_create(&cc), "secdata create"); in misc_tests()
106 TEST_SUCC(vb2api_secdata_check(&cc), "secdata check 2"); in misc_tests()
120 TEST_SUCC(vb2api_fw_phase1(&cc), "phase1 good"); in phase1_tests()
157 TEST_SUCC(vb2api_fw_phase2(&cc), "phase2 good"); in phase2_tests()
162 TEST_SUCC(vb2api_fw_phase2(&cc), "phase1 dev"); in phase2_tests()
189 TEST_SUCC(vb2api_get_pcr_digest( in get_pcr_digest_tests()
198 TEST_SUCC(vb2api_get_pcr_digest( in get_pcr_digest_tests()
Dvb21_common2_tests.c35 TEST_SUCC(vb2_unpack_key(&pubk, (uint8_t *)key2, size), in test_unpack_key()
52 TEST_SUCC(vb2_unpack_key(&pubk, (uint8_t *)key2, size), in test_unpack_key()
79 TEST_SUCC(vb2_unpack_key(&pubk, (uint8_t *)key2, size), in test_unpack_key()
127 TEST_SUCC(vb2_verify_signature(sig2, size), "verify_sig ok"); in test_verify_signature()
139 TEST_SUCC(vb2_verify_signature(sig2, size), "verify_sig minor ver"); in test_verify_signature()
256 TEST_SUCC(vb2_private_key_read_pem(&prik, filename), in test_algorithm()
263 TEST_SUCC(vb2_public_key_read_keyb(&pubk, filename), in test_algorithm()
267 TEST_SUCC(vb2_public_key_pack(&key2, pubk), "Pack public key"); in test_algorithm()
270 TEST_SUCC(vb2_sign_data(&sig2, test_data, test_size, prik, ""), in test_algorithm()
Dvb21_host_misc_tests.c47 TEST_SUCC(vb2_write_file(testfile, test_data, sizeof(test_data)), in file_tests()
49 TEST_SUCC(vb2_read_file(testfile, &read_data, &read_size), in file_tests()
61 TEST_SUCC(vb2_write_object(testfile, c), "vb2_write_object() good"); in file_tests()
62 TEST_SUCC(vb2_read_file(testfile, &read_data, &read_size), in file_tests()
Dvb20_common3_tests.c47 TEST_SUCC(vb2_unpack_key(&key, (uint8_t *)public_key, in test_verify_keyblock()
60 TEST_SUCC(vb2_verify_keyblock(h, hsize, &key, &wb), in test_verify_keyblock()
69 TEST_SUCC(vb2_verify_keyblock(h, hsize + 1, &key, &wb), in test_verify_keyblock()
95 TEST_SUCC(vb2_verify_keyblock(h, hsize, &key, &wb), in test_verify_keyblock()
101 TEST_SUCC(vb2_verify_keyblock(h, hsize, &key, &wb), in test_verify_keyblock()
189 TEST_SUCC(vb2_unpack_key(&rsa, (uint8_t *)public_key, in test_verify_fw_preamble()
204 TEST_SUCC(vb2_verify_fw_preamble(h, hsize, &rsa, &wb), in test_verify_fw_preamble()
219 TEST_SUCC(vb2_verify_fw_preamble(h, hsize + 1, &rsa, &wb), in test_verify_fw_preamble()
240 TEST_SUCC(vb2_verify_fw_preamble(h, hsize, &rsa, &wb), in test_verify_fw_preamble()
Dvb21_api_tests.c183 TEST_SUCC(vb2api_fw_phase3(&ctx), "phase3 good"); in phase3_tests()
211 TEST_SUCC(vb2api_init_hash2(&ctx, test_guid, &size), in init_hash_tests()
228 TEST_SUCC(vb2api_init_hash2(&ctx, test_guid + 2, NULL), in init_hash_tests()
269 TEST_SUCC(vb2api_extend_hash(&ctx, mock_body, 32), in extend_hash_tests()
273 TEST_SUCC(vb2api_extend_hash(&ctx, mock_body, mock_body_size - 32), in extend_hash_tests()
318 TEST_SUCC(vb2api_check_hash(&ctx), "check hash good"); in check_hash_tests()
Dvb20_api_tests.c218 TEST_SUCC(vb2api_fw_phase3(&cc), "phase3 good"); in phase3_tests()
242 TEST_SUCC(vb2api_init_hash(&cc, VB2_HASH_TAG_FW_BODY, &size), in init_hash_tests()
257 TEST_SUCC(vb2api_init_hash(&cc, VB2_HASH_TAG_FW_BODY, NULL), in init_hash_tests()
302 TEST_SUCC(vb2api_extend_hash(&cc, mock_body, 32), in extend_hash_tests()
306 TEST_SUCC(vb2api_extend_hash(&cc, mock_body, mock_body_size - 32), in extend_hash_tests()
338 TEST_SUCC(vb2api_check_hash(&cc), "check hash good"); in check_hash_tests()
Dvb20_misc_tests.c182 TEST_SUCC(vb2_load_fw_keyblock(&cc), "keyblock verify"); in verify_keyblock_tests()
280 TEST_SUCC(vb2_load_fw_preamble(&cc), "preamble good"); in verify_preamble_tests()
348 TEST_SUCC(vb2_load_fw_preamble(&cc), in verify_preamble_tests()
357 TEST_SUCC(vb2_load_fw_preamble(&cc), in verify_preamble_tests()
366 TEST_SUCC(vb2_load_fw_preamble(&cc), in verify_preamble_tests()
Dvb2_sha_tests.c47 TEST_SUCC(vb2_digest(test_inputs[i], in sha1_tests()
71 TEST_SUCC(vb2_digest(test_inputs[i], in sha256_tests()
95 TEST_SUCC(vb2_digest(test_inputs[i], in sha512_tests()
Dvb21_misc_tests.c189 TEST_SUCC(vb2_load_fw_keyblock(&ctx), "keyblock verify"); in load_keyblock_tests()
288 TEST_SUCC(vb2_load_fw_preamble(&ctx), "preamble good"); in load_preamble_tests()
357 TEST_SUCC(vb2_load_fw_preamble(&ctx), in load_preamble_tests()
366 TEST_SUCC(vb2_load_fw_preamble(&ctx), in load_preamble_tests()
375 TEST_SUCC(vb2_load_fw_preamble(&ctx), in load_preamble_tests()
Dvb2_common_tests.c35 TEST_SUCC(vb2_align(&ptr, &size, 4, 16), "vb2_align() aligned"); in test_align()
44 TEST_SUCC(vb2_align(&ptr, &size, 4, 12), "vb2_align() offset"); in test_align()
Dvb20_rsa_padding_tests.c56 TEST_SUCC(vb2_rsa_verify_digest(key, sig, test_message_sha1_hash, &wb), in test_signatures()
87 TEST_SUCC(vb2_rsa_verify_digest(key, sig, test_message_sha1_hash, &wb), in test_verify_digest()
Dtest_common.h47 int TEST_SUCC(int result, const char* testname);
Dtest_common.c96 int TEST_SUCC(int result, const char* testname) { in TEST_SUCC() function
Dvb2_nvstorage_tests.c86 TEST_SUCC(vb2_nv_check_crc(&c), "vb2_nv_check_crc() good"); in nv_storage_test()
Dvb20_common2_tests.c37 TEST_SUCC(vb2_unpack_key(&pubk, buf, size), "vb2_unpack_key() ok"); in test_unpack_key()