/external/vboot_reference/host/lib/ |
D | host_keyblock.c | 15 VbKeyBlockHeader* KeyBlockCreate(const VbPublicKey* data_key, in KeyBlockCreate() argument 20 uint64_t signed_size = sizeof(VbKeyBlockHeader) + data_key->key_size; in KeyBlockCreate() 34 block_chk_dest = data_key_dest + data_key->key_size; in KeyBlockCreate() 44 PublicKeyInit(&h->data_key, data_key_dest, data_key->key_size); in KeyBlockCreate() 45 PublicKeyCopy(&h->data_key, data_key); in KeyBlockCreate() 75 VbKeyBlockHeader* KeyBlockCreate_external(const VbPublicKey* data_key, in KeyBlockCreate_external() argument 81 uint64_t signed_size = sizeof(VbKeyBlockHeader) + data_key->key_size; in KeyBlockCreate_external() 93 if (!signing_key_pem_file || !data_key || !external_signer) in KeyBlockCreate_external() 97 block_chk_dest = data_key_dest + data_key->key_size; in KeyBlockCreate_external() 107 PublicKeyInit(&h->data_key, data_key_dest, data_key->key_size); in KeyBlockCreate_external() [all …]
|
/external/vboot_reference/futility/ |
D | cmd_vbutil_keyblock.c | 85 VbPublicKey *data_key; in Pack() local 100 data_key = PublicKeyRead(datapubkey); in Pack() 101 if (!data_key) { in Pack() 115 block = KeyBlockCreate_external(data_key, in Pack() 127 block = KeyBlockCreate(data_key, signing_key, flags); in Pack() 138 block = KeyBlockCreate(data_key, signing_key, flags); in Pack() 141 free(data_key); in Pack() 156 VbPublicKey *data_key; in Unpack() local 202 data_key = &block->data_key; in Unpack() 203 printf("Data key algorithm: %" PRIu64 " %s\n", data_key->algorithm, in Unpack() [all …]
|
D | cmd_vbutil_firmware.c | 178 VbPublicKey *data_key; in Verify() local 225 data_key = &key_block->data_key; in Verify() 230 printf(" Data key algorithm: %" PRIu64 " %s\n", data_key->algorithm, in Verify() 231 (data_key->algorithm < in Verify() 232 kNumAlgorithms ? algo_strings[data_key-> in Verify() 234 printf(" Data key version: %" PRIu64 "\n", data_key->key_version); in Verify() 236 PrintPubKeySha1Sum(data_key); in Verify() 239 rsa = PublicKeyToRSA(&key_block->data_key); in Verify()
|
D | vb1_helper.c | 496 VbPublicKey *data_key; in VerifyKernelBlob() local 509 data_key = &g_keyblock->data_key; in VerifyKernelBlob() 525 printf(" Data key algorithm: %" PRIu64 " %s\n", data_key->algorithm, in VerifyKernelBlob() 526 (data_key->algorithm < kNumAlgorithms ? in VerifyKernelBlob() 527 algo_strings[data_key->algorithm] : "(invalid)")); in VerifyKernelBlob() 528 printf(" Data key version: %" PRIu64 "\n", data_key->key_version); in VerifyKernelBlob() 530 PrintPubKeySha1Sum(data_key); in VerifyKernelBlob() 550 if (data_key->key_version < (min_version >> 16)) { in VerifyKernelBlob() 553 data_key->key_version, (min_version >> 16)); in VerifyKernelBlob() 557 rsa = PublicKeyToRSA(data_key); in VerifyKernelBlob() [all …]
|
D | cmd_show.c | 81 VbPublicKey *data_key = &key_block->data_key; in show_keyblock() local 82 printf(" Data key algorithm: %" PRIu64 " %s\n", data_key->algorithm, in show_keyblock() 83 (data_key->algorithm < kNumAlgorithms in show_keyblock() 84 ? algo_strings[data_key->algorithm] in show_keyblock() 86 printf(" Data key version: %" PRIu64 "\n", data_key->key_version); in show_keyblock() 88 PrintPubKeySha1Sum(data_key); in show_keyblock() 328 RSAPublicKey *rsa = PublicKeyToRSA(&key_block->data_key); in futil_cb_show_fw_preamble() 441 RSAPublicKey *rsa = PublicKeyToRSA(&key_block->data_key); in futil_cb_show_kernel_preamble()
|
D | cmd_sign.c | 86 VbPublicKey *data_key = (VbPublicKey *)state->my_area->buf; in futil_cb_sign_pubkey() local 93 data_key, in futil_cb_sign_pubkey() 106 vblock = KeyBlockCreate(data_key, option.signprivate, in futil_cb_sign_pubkey() 111 vblock = KeyBlockCreate(data_key, option.signprivate, in futil_cb_sign_pubkey() 155 RSAPublicKey *rsa = PublicKeyToRSA(&key_block->data_key); in futil_cb_sign_fw_vblock()
|
/external/vboot_reference/firmware/lib/ |
D | vboot_firmware.c | 95 RSAPublicKey *data_key; in LoadFirmware() local 144 key_version = key_block->data_key.key_version; in LoadFirmware() 164 data_key = PublicKeyToRSA(&key_block->data_key); in LoadFirmware() 165 if (!data_key) { in LoadFirmware() 177 data_key))) { in LoadFirmware() 180 RSAPublicKeyFree(data_key); in LoadFirmware() 191 RSAPublicKeyFree(data_key); in LoadFirmware() 208 RSAPublicKeyFree(data_key); in LoadFirmware() 221 RSAPublicKeyFree(data_key); in LoadFirmware() 233 data_key->algorithm); in LoadFirmware() [all …]
|
D | vboot_kernel.c | 147 RSAPublicKey *data_key = NULL; in LoadKernel() local 244 key_version = key_block->data_key.key_version; in LoadKernel() 272 data_key = PublicKeyToRSA(&key_block->data_key); in LoadKernel() 273 if (!data_key) { in LoadKernel() 285 data_key))) { in LoadKernel() 407 &preamble->body_signature, data_key)) { in LoadKernel() 414 RSAPublicKeyFree(data_key); in LoadKernel() 415 data_key = NULL; in LoadKernel() 476 if (NULL != data_key) in LoadKernel() 477 RSAPublicKeyFree(data_key); in LoadKernel()
|
/external/vboot_reference/firmware/lib20/ |
D | misc.c | 83 if (kb->data_key.key_version > 0xffff) in vb2_load_fw_keyblock() 85 if (!rv && kb->data_key.key_version < (sd->fw_version_secdata >> 16)) in vb2_load_fw_keyblock() 92 sd->fw_version = kb->data_key.key_version << 16; in vb2_load_fw_keyblock() 101 packed_key->algorithm = kb->data_key.algorithm; in vb2_load_fw_keyblock() 102 packed_key->key_version = kb->data_key.key_version; in vb2_load_fw_keyblock() 103 packed_key->key_size = kb->data_key.key_size; in vb2_load_fw_keyblock() 112 (uint8_t*)&kb->data_key + kb->data_key.key_offset, in vb2_load_fw_keyblock() 137 struct vb2_public_key data_key; in vb2_load_fw_preamble() local 151 rv = vb2_unpack_key(&data_key, key_data, key_size); in vb2_load_fw_preamble() 182 rv = vb2_verify_fw_preamble(pre, pre_size, &data_key, &wb); in vb2_load_fw_preamble()
|
D | common.c | 188 &block->data_key)) { in vb2_verify_keyblock() 193 &block->data_key)) { in vb2_verify_keyblock()
|
/external/vboot_reference/tests/ |
D | vboot_firmware_tests.c | 31 static RSAPublicKey data_key; variable 63 vblock[i].data_key.key_version = 2; in ResetMocks() 95 Memset(&data_key, 0, sizeof(data_key)); in ResetMocks() 125 TEST_PTR_EQ(key, &data_key, " Verify preamble data key"); in VerifyFirmwarePreamble() 138 data_key.len++; in PublicKeyToRSA() 139 return &data_key; in PublicKeyToRSA() 143 TEST_PTR_EQ(key, &data_key, " RSA data key"); in RSAPublicKeyFree() 144 data_key.len--; in RSAPublicKeyFree() 189 TEST_PTR_EQ(key, &data_key, "Verifying using data key"); in VerifyDigest() 204 TEST_EQ(data_key.len, 0, " Data key free must be paired with alloc"); in TestLoadFirmware() [all …]
|
D | vb20_misc_tests.c | 98 kb->data_key.algorithm = 7; in reset_common_data() 99 kb->data_key.key_version = 2; in reset_common_data() 100 kb->data_key.key_offset = in reset_common_data() 102 vb2_offset_of(&mock_vblock.k, &kb->data_key); in reset_common_data() 103 kb->data_key.key_size = sizeof(mock_vblock.k.data_key_data); in reset_common_data() 259 kb->data_key.key_version = 0x10000; in verify_keyblock_tests() 265 kb->data_key.key_version = 1; in verify_keyblock_tests()
|
D | vboot_common3_tests.c | 32 const VbPublicKey *data_key) in KeyBlockVerifyTest() argument 38 hdr = KeyBlockCreate(data_key, private_key, 0x1234); in KeyBlockVerifyTest() 101 GetPublicKeyData(&h->data_key)[0] ^= 0x34; in KeyBlockVerifyTest() 119 GetPublicKeyData(&h->data_key)[0] ^= 0x34; in KeyBlockVerifyTest() 131 h->data_key.key_offset = 0; in KeyBlockVerifyTest() 132 h->data_key.key_size = 0; in KeyBlockVerifyTest() 138 h->data_key.key_offset = hsize; in KeyBlockVerifyTest()
|
D | vb20_common3_tests.c | 34 const VbPublicKey *data_key) in test_verify_keyblock() argument 52 KeyBlockCreate(data_key, private_key, 0x1234); in test_verify_keyblock() 120 ((uint8_t *)vb2_packed_key_data(&h->data_key))[0] ^= 0x34; in test_verify_keyblock() 134 h->data_key.key_offset = 0; in test_verify_keyblock() 135 h->data_key.key_size = 0; in test_verify_keyblock() 142 h->data_key.key_offset = hsize; in test_verify_keyblock()
|
D | vb21_misc_tests.c | 39 struct vb2_packed_key data_key; member 64 struct vb2_packed_key *dk = &mock_vblock.k.data_key; in reset_common_data() 102 &mock_vblock.k.data_key); in reset_common_data() 104 dk->c.fixed_size = sizeof(mock_vblock.k.data_key); in reset_common_data() 182 struct vb2_packed_key *dk = &mock_vblock.k.data_key; in load_keyblock_tests()
|
D | vboot_kernel_tests.c | 163 kbh.data_key.key_version = 2; in ResetMocks() 664 kbh.data_key.key_version = 1; in LoadKernelTest() 669 kbh.data_key.key_version = 0x10000; in LoadKernelTest() 674 kbh.data_key.key_version = 3; in LoadKernelTest() 679 kbh.data_key.key_version = 3; in LoadKernelTest() 687 kbh.data_key.key_version = 1; in LoadKernelTest() 692 kbh.data_key.key_version = 1; in LoadKernelTest()
|
/external/curl/tests/unit/ |
D | unit1305.c | 44 static char *data_key; variable 69 free(data_key); in unit_stop() 105 data_key = aprintf("%s:%d", "dummy", 0); in create_node() 106 if(!data_key) in create_node() 130 key_len = strlen(data_key); 133 nodep = Curl_hash_add(&hp, data_key, key_len + 1, data_node);
|
/external/vulkan-validation-layers/layers/ |
D | vk_layer_data.h | 29 DATA_T *GetLayerDataPtr(void *data_key, std::unordered_map<void *, DATA_T *> &layer_data_map) { in GetLayerDataPtr() argument 34 got = layer_data_map.find(data_key); in GetLayerDataPtr() 38 layer_data_map[(void *)data_key] = debug_data; in GetLayerDataPtr() 47 void FreeLayerDataPtr(void *data_key, std::unordered_map<void *, DATA_T *> &layer_data_map) { in FreeLayerDataPtr() argument 48 auto got = layer_data_map.find(data_key); in FreeLayerDataPtr()
|
/external/vboot_reference/host/lib21/ |
D | host_keyblock.c | 19 const struct vb2_public_key *data_key, in vb2_keyblock_create() argument 42 desc = data_key->desc; in vb2_keyblock_create() 49 if (vb2_public_key_pack(&key, data_key)) in vb2_keyblock_create()
|
/external/vboot_reference/host/lib/include/ |
D | host_keyblock.h | 21 VbKeyBlockHeader* KeyBlockCreate_external(const VbPublicKey* data_key, 30 VbKeyBlockHeader* KeyBlockCreate(const VbPublicKey* data_key,
|
/external/vboot_reference/firmware/lib21/ |
D | misc.c | 160 struct vb2_public_key data_key; in vb2_load_fw_preamble() local 173 rv = vb2_unpack_key(&data_key, key_data, key_size); in vb2_load_fw_preamble() 187 rv = vb2_verify_fw_preamble(pre, pre->c.total_size, &data_key, &wb); in vb2_load_fw_preamble()
|
/external/wpa_supplicant_8/src/pae/ |
D | ieee802_1x_kay.h | 58 struct data_key { struct 103 struct data_key *pkey; 130 struct data_key *pkey;
|
D | ieee802_1x_kay.c | 425 static void ieee802_1x_kay_use_data_key(struct data_key *pkey); 432 struct data_key *key) in ieee802_1x_kay_init_receive_sa() 464 static void ieee802_1x_kay_deinit_data_key(struct data_key *pkey); 1260 struct data_key *sa_key = NULL; in ieee802_1x_mka_decode_sak_use_body() 1312 struct data_key, list) { in ieee802_1x_mka_decode_sak_use_body() 1445 struct data_key *sak; in ieee802_1x_mka_encode_dist_sak_body() 1491 static void ieee802_1x_kay_init_data_key(struct data_key *pkey) in ieee802_1x_kay_init_data_key() 1514 struct data_key *sa_key = NULL; in ieee802_1x_mka_decode_dist_sak_body() 1579 dl_list_for_each(sa_key, &participant->sak_list, struct data_key, list) in ieee802_1x_mka_decode_dist_sak_body() 1901 static void ieee802_1x_kay_use_data_key(struct data_key *pkey) in ieee802_1x_kay_use_data_key() [all …]
|
/external/vboot_reference/host/lib21/include/ |
D | host_keyblock2.h | 30 const struct vb2_public_key *data_key,
|
/external/vboot_reference/firmware/lib20/include/ |
D | vb2_struct.h | 114 struct vb2_packed_key data_key; member
|