• Home
  • Raw
  • Download

Lines Matching refs:vblock

24 static VbKeyBlockHeader vblock[2];  variable
53 fparams.verification_block_A = vblock; in ResetMocks()
55 fparams.verification_block_B = vblock + 1; in ResetMocks()
58 Memset(vblock, 0, sizeof(vblock)); in ResetMocks()
62 vblock[i].key_block_flags = 0x0F; in ResetMocks()
63 vblock[i].data_key.key_version = 2; in ResetMocks()
65 vblock[i].key_block_size = in ResetMocks()
66 (uint8_t*)(mpreamble + i) - (uint8_t*)(vblock + i); in ResetMocks()
117 TEST_NEQ(block==vblock || block==vblock+1, 0, " Verify a valid key block"); in KeyBlockVerify()
170 digest_expect_ptr = (uint8_t*)(vblock + hash_fw_index) + 5; in VbExHashFirmwareBody()
221 vblock[0].key_block_flags = KEY_BLOCK_FLAG_DEVELOPER_1; in LoadFirmwareTest()
222 vblock[1].key_block_flags = in LoadFirmwareTest()
237 vblock[0].key_block_flags = KEY_BLOCK_FLAG_DEVELOPER_0; in LoadFirmwareTest()
238 vblock[1].key_block_flags = in LoadFirmwareTest()
253 vblock[0].header_version_major = 1; /* Simulate failure */ in LoadFirmwareTest()
254 vblock[1].data_key.key_version = 1; /* Simulate rollback */ in LoadFirmwareTest()
268 vblock[0].data_key.key_version = 0x10003; /* Version > 0xFFFF is invalid */ in LoadFirmwareTest()
269 vblock[1].data_key.algorithm = 1; /* Simulate invalid data key */ in LoadFirmwareTest()
281 vblock[0].data_key.key_version = 1; /* Simulate rollback */ in LoadFirmwareTest()
290 vblock[1].key_block_flags = 0; /* Invalid */ in LoadFirmwareTest()
325 vblock[1].key_block_flags = 0; /* Invalid */ in LoadFirmwareTest()
339 vblock[1].key_block_flags = 0; /* Invalid */ in LoadFirmwareTest()
343 TEST_EQ(shared->fw_keyblock_flags, vblock[0].key_block_flags, in LoadFirmwareTest()
387 TEST_EQ(shared->fw_keyblock_flags, vblock[0].key_block_flags, "Key block A"); in LoadFirmwareTest()
394 vblock[1].key_block_flags = 0; /* Invalid */ in LoadFirmwareTest()
406 vblock[1].key_block_flags = 0; /* Invalid */ in LoadFirmwareTest()
417 vblock[1].key_block_flags = 0; /* Invalid */ in LoadFirmwareTest()
428 vblock[1].key_block_flags = 0; /* Invalid */ in LoadFirmwareTest()
439 vblock[1].key_block_flags = 0; /* Invalid */ in LoadFirmwareTest()