• Home
  • Raw
  • Download

Lines Matching refs:testfile

39 	const char *testfile = "test.vbprik2";  in private_key_tests()  local
56 vb2_write_file(testfile, (const uint8_t *)notapem, sizeof(notapem)); in private_key_tests()
57 TEST_EQ(vb2_private_key_read_pem(&key, testfile), in private_key_tests()
59 unlink(testfile); in private_key_tests()
77 unlink(testfile); in private_key_tests()
79 TEST_EQ(vb2_private_key_read(&k2, testfile), 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()
149 unlink(testfile); in private_key_tests()
163 TEST_SUCC(vb2_private_key_write(ckey, testfile), "Write hash key"); in private_key_tests()
164 TEST_SUCC(vb2_private_key_read(&key, testfile), "Read hash key"); in private_key_tests()
165 unlink(testfile); in private_key_tests()
173 const char *testfile = "test.vbpubk2"; in public_key_tests() local
193 vb2_write_file(testfile, buf, bufsize - 1); in public_key_tests()
194 TEST_EQ(vb2_public_key_read_keyb(&key, testfile), in public_key_tests()
196 unlink(testfile); in public_key_tests()
198 vb2_write_file(testfile, buf, bufsize); in public_key_tests()
200 TEST_EQ(vb2_public_key_read_keyb(&key, testfile), in public_key_tests()
202 unlink(testfile); in public_key_tests()
237 TEST_SUCC(vb2_write_object(testfile, pkey), "Write packed key"); in public_key_tests()
240 TEST_SUCC(vb2_packed_key_read(&pkey, testfile), "Read packed key"); in public_key_tests()
242 unlink(testfile); in public_key_tests()
245 TEST_SUCC(vb2_write_object(testfile, pkey), "Write bad packed key"); in public_key_tests()
248 TEST_EQ(vb2_packed_key_read(&pkey, testfile), in public_key_tests()
251 unlink(testfile); in public_key_tests()
253 TEST_EQ(vb2_packed_key_read(&pkey, testfile), in public_key_tests()