• Home
  • Raw
  • Download

Lines Matching refs:hdr

34 	VbKeyBlockHeader *hdr;  in KeyBlockVerifyTest()  local
38 hdr = KeyBlockCreate(data_key, private_key, 0x1234); in KeyBlockVerifyTest()
39 TEST_NEQ((size_t)hdr, 0, "KeyBlockVerify() prerequisites"); in KeyBlockVerifyTest()
40 if (!hdr) in KeyBlockVerifyTest()
42 hsize = (unsigned) hdr->key_block_size; in KeyBlockVerifyTest()
45 TEST_EQ(KeyBlockVerify(hdr, hsize, NULL, 1), 0, in KeyBlockVerifyTest()
47 TEST_EQ(KeyBlockVerify(hdr, hsize, public_key, 0), 0, in KeyBlockVerifyTest()
49 TEST_NEQ(KeyBlockVerify(hdr, hsize, NULL, 0), 0, in KeyBlockVerifyTest()
52 TEST_NEQ(KeyBlockVerify(hdr, hsize - 1, NULL, 1), 0, in KeyBlockVerifyTest()
54 TEST_EQ(KeyBlockVerify(hdr, hsize + 1, NULL, 1), 0, in KeyBlockVerifyTest()
57 Memcpy(h, hdr, hsize); in KeyBlockVerifyTest()
63 Memcpy(h, hdr, hsize); in KeyBlockVerifyTest()
69 Memcpy(h, hdr, hsize); in KeyBlockVerifyTest()
75 Memcpy(h, hdr, hsize); in KeyBlockVerifyTest()
81 Memcpy(h, hdr, hsize); in KeyBlockVerifyTest()
88 Memcpy(h, hdr, hsize); in KeyBlockVerifyTest()
94 Memcpy(h, hdr, hsize); in KeyBlockVerifyTest()
100 Memcpy(h, hdr, hsize); in KeyBlockVerifyTest()
106 Memcpy(h, hdr, hsize); in KeyBlockVerifyTest()
112 Memcpy(h, hdr, hsize); in KeyBlockVerifyTest()
118 Memcpy(h, hdr, hsize); in KeyBlockVerifyTest()
123 Memcpy(h, hdr, hsize); in KeyBlockVerifyTest()
129 Memcpy(h, hdr, hsize); in KeyBlockVerifyTest()
137 Memcpy(h, hdr, hsize); in KeyBlockVerifyTest()
153 free(hdr); in KeyBlockVerifyTest()
170 VbFirmwarePreambleHeader *hdr; in VerifyFirmwarePreambleTest() local
179 hdr = CreateFirmwarePreamble(0x1234, kernel_subkey, body_sig, in VerifyFirmwarePreambleTest()
181 TEST_NEQ(hdr && rsa, 0, "VerifyFirmwarePreamble() prerequisites"); in VerifyFirmwarePreambleTest()
182 if (!hdr) in VerifyFirmwarePreambleTest()
184 hsize = (unsigned) hdr->preamble_size; in VerifyFirmwarePreambleTest()
187 TEST_EQ(VerifyFirmwarePreamble(hdr, hsize, rsa), 0, in VerifyFirmwarePreambleTest()
189 TEST_NEQ(VerifyFirmwarePreamble(hdr, 4, rsa), 0, in VerifyFirmwarePreambleTest()
191 TEST_NEQ(VerifyFirmwarePreamble(hdr, hsize - 1, rsa), 0, in VerifyFirmwarePreambleTest()
193 TEST_EQ(VerifyFirmwarePreamble(hdr, hsize + 1, rsa), 0, in VerifyFirmwarePreambleTest()
197 Memcpy(h, hdr, hsize); in VerifyFirmwarePreambleTest()
203 Memcpy(h, hdr, hsize); in VerifyFirmwarePreambleTest()
209 Memcpy(h, hdr, hsize); in VerifyFirmwarePreambleTest()
215 Memcpy(h, hdr, hsize); in VerifyFirmwarePreambleTest()
222 Memcpy(h, hdr, hsize); in VerifyFirmwarePreambleTest()
228 Memcpy(h, hdr, hsize); in VerifyFirmwarePreambleTest()
234 Memcpy(h, hdr, hsize); in VerifyFirmwarePreambleTest()
240 Memcpy(h, hdr, hsize); in VerifyFirmwarePreambleTest()
250 Memcpy(h, hdr, hsize); in VerifyFirmwarePreambleTest()
256 Memcpy(h, hdr, hsize); in VerifyFirmwarePreambleTest()
263 Memcpy(h, hdr, hsize); in VerifyFirmwarePreambleTest()
274 free(hdr); in VerifyFirmwarePreambleTest()