Home
last modified time | relevance | path

Searched refs:key_offset (Results 1 – 25 of 34) sorted by relevance

12

/external/vboot_reference/tests/
Dvb20_common_tests.c64 struct vb2_packed_key k = {.key_offset = sizeof(k)}; in test_helper_functions()
70 struct vb2_packed_key k = {.key_offset = 123}; in test_helper_functions()
126 struct vb2_packed_key k = {.key_offset = sizeof(k), in test_helper_functions()
139 struct vb2_packed_key k = {.key_offset = 100, in test_helper_functions()
Dvb20_common2_tests.c32 uint32_t size = key1->key_offset + key1->key_size; in test_unpack_key()
58 key->key_offset++; in test_unpack_key()
64 *(uint32_t *)(buf + key->key_offset) /= 2; in test_unpack_key()
84 uint32_t pubkey_size = key1->key_offset + key1->key_size; in test_verify_data()
Dvb20_common3_tests.c48 public_key->key_offset + public_key->key_size), in test_verify_keyblock()
134 h->data_key.key_offset = 0; in test_verify_keyblock()
142 h->data_key.key_offset = hsize; in test_verify_keyblock()
190 public_key->key_offset + public_key->key_size), in test_verify_fw_preamble()
274 h->kernel_subkey.key_offset = 0; in test_verify_fw_preamble()
284 h->kernel_subkey.key_offset = hsize; in test_verify_fw_preamble()
Dvb21_misc_tests.c95 mock_gbb.rootkey.key_offset = in reset_common_data()
101 kb->key_offset = vb2_offset_of(&mock_vblock.k.kb, in reset_common_data()
107 dk->key_offset = dk->c.fixed_size; in reset_common_data()
109 dk->c.total_size = dk->key_offset + dk->key_size; in reset_common_data()
209 k->key_offset, mock_vblock.k.data_key_data, in load_keyblock_tests()
Dvboot_common3_tests.c131 h->data_key.key_offset = 0; in KeyBlockVerifyTest()
138 h->data_key.key_offset = hsize; in KeyBlockVerifyTest()
242 h->kernel_subkey.key_offset = 0; in VerifyFirmwarePreambleTest()
251 h->kernel_subkey.key_offset = hsize; in VerifyFirmwarePreambleTest()
Dvb21_common2_tests.c39 key2->key_offset += 4; in test_unpack_key()
101 key2->key_offset--; in test_unpack_key()
107 *(uint32_t *)((uint8_t *)key2 + key2->key_offset) /= 2; in test_unpack_key()
Dvb20_misc_tests.c92 mock_gbb.rootkey.key_offset = in reset_common_data()
100 kb->data_key.key_offset = in reset_common_data()
201 k->key_offset, mock_vblock.k.data_key_data, in verify_keyblock_tests()
Dvboot_common_tests.c161 TEST_EQ(k->key_offset, sizeof(VbPublicKey), "PublicKeyInit key_offset"); in PublicKeyTest()
178 TEST_EQ(j->key_offset, 2 * sizeof(VbPublicKey), in PublicKeyTest()
/external/vboot_reference/firmware/lib21/include/
Dvb2_struct.h122 uint32_t key_offset; member
164 uint32_t key_offset; member
263 uint32_t key_offset; member
/external/vboot_reference/host/lib21/
Dhost_keyblock.c44 kb.key_offset = kb.c.fixed_size + kb.c.desc_size; in vb2_keyblock_create()
52 kb.sig_offset = kb.key_offset + key->c.total_size; in vb2_keyblock_create()
65 memcpy(buf + kb.key_offset, key, key->c.total_size); in vb2_keyblock_create()
Dhost_key.c111 pkey->key_offset, pkey->key_size)) in vb2_private_key_unpack()
140 start = (const unsigned char *)(buf + pkey->key_offset); in vb2_private_key_unpack()
258 pkey.key_offset = pkey.c.fixed_size + pkey.c.desc_size; in vb2_private_key_write()
260 pkey.c.total_size = pkey.key_offset + pkey.key_size; in vb2_private_key_write()
276 memcpy(buf + pkey.key_offset, rsabuf, rsalen); in vb2_private_key_write()
473 key.key_offset = key.c.fixed_size + key.c.desc_size; in vb2_public_key_pack()
481 key.c.total_size = key.key_offset + key.key_size; in vb2_public_key_pack()
503 buf32 = (uint32_t *)(buf + key.key_offset); in vb2_public_key_pack()
/external/vboot_reference/firmware/lib20/
Dpacked_key.c14 return (const uint8_t *)key + key->key_offset; in vb2_packed_key_data()
23 key->key_offset, key->key_size); in vb2_verify_packed_key_inside()
Dmisc.c111 memmove(key_data + packed_key->key_offset, in vb2_load_fw_keyblock()
112 (uint8_t*)&kb->data_key + kb->data_key.key_offset, in vb2_load_fw_keyblock()
118 packed_key->key_offset + packed_key->key_size; in vb2_load_fw_keyblock()
/external/vboot_reference/firmware/lib21/
Dpacked_key.c65 pkey->key_offset, pkey->key_size); in vb2_unpack_key()
89 (const uint8_t *)pkey + pkey->key_offset, in vb2_unpack_key()
/external/v8/src/ic/arm64/
Dstub-cache-arm64.cc34 ExternalReference key_offset(isolate->stub_cache()->key_reference(table)); in ProbeTable() local
38 uintptr_t key_off_addr = reinterpret_cast<uintptr_t>(key_offset.address()); in ProbeTable()
51 __ Mov(scratch, key_offset); in ProbeTable()
/external/v8/src/ic/mips64/
Dstub-cache-mips64.cc24 ExternalReference key_offset(isolate->stub_cache()->key_reference(table)); in ProbeTable() local
28 uint64_t key_off_addr = reinterpret_cast<uint64_t>(key_offset.address()); in ProbeTable()
49 __ li(base_addr, Operand(key_offset)); in ProbeTable()
/external/v8/src/ic/arm/
Dstub-cache-arm.cc24 ExternalReference key_offset(isolate->stub_cache()->key_reference(table)); in ProbeTable() local
28 uint32_t key_off_addr = reinterpret_cast<uint32_t>(key_offset.address()); in ProbeTable()
48 __ mov(base_addr, Operand(key_offset)); in ProbeTable()
/external/v8/src/ic/ppc/
Dstub-cache-ppc.cc24 ExternalReference key_offset(isolate->stub_cache()->key_reference(table)); in ProbeTable() local
28 uintptr_t key_off_addr = reinterpret_cast<uintptr_t>(key_offset.address()); in ProbeTable()
50 __ mov(base_addr, Operand(key_offset)); in ProbeTable()
/external/v8/src/ic/mips/
Dstub-cache-mips.cc24 ExternalReference key_offset(isolate->stub_cache()->key_reference(table)); in ProbeTable() local
28 uint32_t key_off_addr = reinterpret_cast<uint32_t>(key_offset.address()); in ProbeTable()
49 __ li(base_addr, Operand(key_offset)); in ProbeTable()
/external/vboot_reference/firmware/lib/
Dvboot_common.c35 return (uint8_t *)key + key->key_offset; in GetPublicKeyData()
40 return (const uint8_t *)key + key->key_offset; in GetPublicKeyDataC()
92 key->key_offset, key->key_size); in VerifyPublicKeyInside()
105 key->key_offset = OffsetOf(key, key_data); in PublicKeyInit()
Dregion-fw.c33 size = hdr.key_offset + hdr.key_size; in VbGbbReadKey()
/external/v8/src/ic/ia32/
Dstub-cache-ia32.cc23 ExternalReference key_offset(isolate->stub_cache()->key_reference(table)); in ProbeTable() local
42 __ cmp(name, Operand::StaticArray(offset, times_1, key_offset)); in ProbeTable()
91 __ cmp(name, Operand::StaticArray(offset, times_1, key_offset)); in ProbeTable()
/external/v8/src/ic/x87/
Dstub-cache-x87.cc23 ExternalReference key_offset(isolate->stub_cache()->key_reference(table)); in ProbeTable() local
42 __ cmp(name, Operand::StaticArray(offset, times_1, key_offset)); in ProbeTable()
91 __ cmp(name, Operand::StaticArray(offset, times_1, key_offset)); in ProbeTable()
/external/vboot_reference/host/lib/
Dhost_key.c156 key->key_offset = sizeof(VbPublicKey); in PublicKeyAlloc()
259 rv = WriteFile(filename, kcopy, kcopy->key_offset + kcopy->key_size); in PublicKeyWrite()
/external/v8/src/ic/x64/
Dstub-cache-x64.cc34 ExternalReference key_offset(isolate->stub_cache()->key_reference(table)); in ProbeTable() local
41 __ LoadAddress(kScratchRegister, key_offset); in ProbeTable()

12