Home
last modified time | relevance | path

Searched refs:key_block_size (Results 1 – 17 of 17) sorted by relevance

/external/vboot_reference/futility/
Dvb1_helper.c312 Debug("Keyblock is 0x%" PRIx64 " bytes\n", keyblock->key_block_size); in UnpackKPart()
313 now += keyblock->key_block_size; in UnpackKPart()
405 uint64_t min_size = padding > keyblock->key_block_size in SignKernelBlob()
406 ? padding - keyblock->key_block_size : 0; in SignKernelBlob()
433 outsize = keyblock->key_block_size + preamble->preamble_size; in SignKernelBlob()
436 Memcpy(outbuf, keyblock, keyblock->key_block_size); in SignKernelBlob()
437 Memcpy(outbuf + keyblock->key_block_size, in SignKernelBlob()
502 if (0 != KeyBlockVerify(g_keyblock, g_keyblock->key_block_size, in VerifyKernelBlob()
513 g_keyblock->key_block_size); in VerifyKernelBlob()
541 if (1 != fwrite(g_keyblock, g_keyblock->key_block_size, 1, f)) { in VerifyKernelBlob()
[all …]
Dcmd_vbutil_firmware.c89 uint64_t key_block_size; in Vblock() local
110 (VbKeyBlockHeader *) ReadFile(keyblock_file, &key_block_size); in Vblock()
159 i = ((1 != fwrite(key_block, key_block_size, 1, f)) || in Vblock()
222 now += key_block->key_block_size; in Verify()
227 key_block->key_block_size); in Verify()
Ddump_kernel_config_lib.c85 ssize_t to_skip = key_block.key_block_size - sizeof(key_block); in FindKernelConfigFromStream()
90 now += key_block.key_block_size; in FindKernelConfigFromStream()
Dcmd_sign.c117 vblock, vblock->key_block_size, in futil_cb_sign_pubkey()
162 uint32_t more = key_block->key_block_size; in futil_cb_sign_fw_vblock()
359 option.keyblock, option.keyblock->key_block_size, in futil_cb_sign_raw_firmware()
406 uint32_t more = keyblock->key_block_size; in write_new_preamble()
Dcmd_show.c68 key_block->key_block_size); in show_keyblock()
333 uint32_t more = key_block->key_block_size; in futil_cb_show_fw_preamble()
446 uint32_t more = key_block->key_block_size; in futil_cb_show_kernel_preamble()
Dcmd_vbutil_keyblock.c181 KeyBlockVerify(block, block->key_block_size, sign_key, 0)) { in Unpack()
Dcmd_vbutil_kernel.c619 keyblock->key_block_size + in do_vbutil_kernel()
/external/vboot_reference/firmware/lib/
Dvboot_common.c205 if (size < block->key_block_size) { in KeyBlockVerify()
227 if (VerifySignatureInside(block, block->key_block_size, sig)) { in KeyBlockVerify()
237 if (block->key_block_size < sig->data_size) { in KeyBlockVerify()
260 if (VerifySignatureInside(block, block->key_block_size, sig)) { in KeyBlockVerify()
272 if (block->key_block_size < sig->data_size) { in KeyBlockVerify()
294 if (VerifyPublicKeyInside(block, block->key_block_size, in KeyBlockVerify()
Dvboot_kernel.c281 (kbuf + key_block->key_block_size); in LoadKernel()
284 KBUF_SIZE - key_block->key_block_size, in LoadKernel()
336 body_offset = key_block->key_block_size + in LoadKernel()
Dvboot_firmware.c173 ((uint8_t *)key_block + key_block->key_block_size); in LoadFirmware()
176 vblock_size - key_block->key_block_size, in LoadFirmware()
/external/vboot_reference/host/lib/
Dhost_keyblock.c40 h->key_block_size = block_size; in KeyBlockCreate()
103 h->key_block_size = block_size; in KeyBlockCreate_external()
162 if (0 != WriteFile(filename, key_block, key_block->key_block_size)) { in KeyBlockWrite()
Dextract_vmlinuz.c27 now += keyblock->key_block_size; in ExtractVmlinuz()
58 keyblock->key_block_size + in ExtractVmlinuz()
/external/boringssl/src/ssl/
Dt1_enc.cc202 const size_t key_block_size = 2 * (mac_secret_len + key_len + iv_len); in tls1_configure_aead() local
204 if (!key_block_cache->Init(key_block_size) || in tls1_configure_aead()
205 !SSL_generate_key_block(ssl, key_block_cache->data(), key_block_size)) { in tls1_configure_aead()
209 assert(key_block_cache->size() == key_block_size); in tls1_configure_aead()
/external/vboot_reference/tests/
Dvboot_common3_tests.c42 hsize = (unsigned) hdr->key_block_size; in KeyBlockVerifyTest()
124 h->key_block_checksum.data_size = h->key_block_size + 1; in KeyBlockVerifyTest()
Dvboot_kernel_tests.c165 kbh.key_block_size = sizeof(kbh); in ResetMocks()
169 kph.preamble_size = 4096 - kbh.key_block_size; in ResetMocks()
Dvboot_firmware_tests.c65 vblock[i].key_block_size = in ResetMocks()
/external/vboot_reference/firmware/include/
Dvboot_struct.h73 uint64_t key_block_size; member