Home
last modified time | relevance | path

Searched refs:key_offset (Results 1 – 25 of 36) 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()
Dvb21_host_keyblock_tests.c89 pak = (struct vb2_packed_key *)((uint8_t *)kb + kb->key_offset); in keyblock_tests()
/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/lib21/include/
Dvb2_struct.h122 uint32_t key_offset; member
164 uint32_t key_offset; member
263 uint32_t key_offset; member
/external/icing/icing/legacy/index/
Dicing-dynamic-trie.cc1589 int key_offset; in Insert() local
1590 FindBestNode(key, &best_node_index, &key_offset, false); in Insert()
1593 if (key_offset < 0) { in Insert()
1610 const char *key_cur = key + key_offset; in Insert()
1671 split_next[1].set_val(*(key + key_offset + common_len)); in Insert()
1673 if (*(key + key_offset + common_len)) { in Insert()
1675 key + key_offset + common_len + 1, value, value_index); in Insert()
1678 uint32_t next_index = storage_->MakeSuffix(key + key_offset + common_len, in Insert()
1692 if (*(key + key_offset)) { in Insert()
1694 storage_->MakeSuffix(key + key_offset + 1, value, value_index); in Insert()
[all …]
/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/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/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()
Dutil_misc.c23 uint8_t *buf = ((uint8_t *)key) + key->key_offset; in PrintPubKeySha1Sum()
/external/vboot_reference/firmware/lib20/include/
Dvb2_struct.h23 uint32_t key_offset; member
/external/flatbuffers/src/
Didl_gen_java.cpp512 std::string key_offset = ""; in GenOffsetGetter() local
513 key_offset += "__offset(" + NumToString(key_field->value.offset) + ", "; in GenOffsetGetter()
515 key_offset += num; in GenOffsetGetter()
516 key_offset += ", _bb)"; in GenOffsetGetter()
518 key_offset += GenByteBufferLength("bb"); in GenOffsetGetter()
519 key_offset += " - tableOffset, bb)"; in GenOffsetGetter()
521 return key_offset; in GenOffsetGetter()
Didl_gen_kotlin.cpp408 std::string key_offset = in GenOffsetGetter() local
411 key_offset += num; in GenOffsetGetter()
412 key_offset += ", _bb)"; in GenOffsetGetter()
414 key_offset += GenByteBufferLength("bb"); in GenOffsetGetter()
415 key_offset += " - tableOffset, bb)"; in GenOffsetGetter()
417 return key_offset; in GenOffsetGetter()
/external/e2fsprogs/misc/
De2undo.c58 __le64 key_offset; /* where do the key/data block chunks start? */ member
132 printf("key block:\t%llu\n", ext2fs_le64_to_cpu(hdr->key_offset)); in dump_header()
497 lblk = ext2fs_le64_to_cpu(undo_ctx.hdr.key_offset); in main()
/external/vboot_reference/firmware/include/
Dvboot_struct.h16 uint64_t key_offset; member

12