Home
last modified time | relevance | path

Searched refs:body_signature (Results 1 – 20 of 20) sorted by relevance

/external/vboot_reference/host/lib/
Dhost_common.c20 const VbSignature *body_signature, in CreateFirmwarePreamble() argument
27 body_signature->sig_size); in CreateFirmwarePreamble()
42 block_sig_dest = body_sig_dest + body_signature->sig_size; in CreateFirmwarePreamble()
56 SignatureInit(&h->body_signature, body_sig_dest, in CreateFirmwarePreamble()
57 body_signature->sig_size, 0); in CreateFirmwarePreamble()
58 SignatureCopy(&h->body_signature, body_signature); in CreateFirmwarePreamble()
78 const VbSignature *body_signature, in CreateKernelPreamble() argument
87 body_signature->sig_size); in CreateKernelPreamble()
104 block_sig_dest = body_sig_dest + body_signature->sig_size; in CreateKernelPreamble()
118 SignatureInit(&h->body_signature, body_sig_dest, in CreateKernelPreamble()
[all …]
Dextract_vmlinuz.c37 kblob_size = preamble->body_signature.data_size; in ExtractVmlinuz()
/external/vboot_reference/tests/
Dvboot_firmware_tests.c72 (uint8_t*)&mpreamble[i].body_signature, 20); in ResetMocks()
74 mpreamble[i].body_signature.data_size = 20000 + 1000 * i; in ResetMocks()
173 mpreamble[hash_fw_index].body_signature.data_size - 1024); in VbExHashFirmwareBody()
177 if (42 == mpreamble[hash_fw_index].body_signature.sig_offset) { in VbExHashFirmwareBody()
183 return mpreamble[hash_fw_index].body_signature.sig_offset; in VbExHashFirmwareBody()
190 TEST_PTR_EQ(sig, &mpreamble[hash_fw_index].body_signature, "Verifying sig"); in VerifyDigest()
337 mpreamble[0].body_signature.sig_size = 1; in LoadFirmwareTest()
400 TEST_EQ(digest_size, mpreamble[0].body_signature.data_size, in LoadFirmwareTest()
405 mpreamble[0].body_signature.sig_offset = VBERROR_UNKNOWN; in LoadFirmwareTest()
416 mpreamble[0].body_signature.sig_offset = 42; /* Mock hashing wrong amount */ in LoadFirmwareTest()
[all …]
Dvboot_common2_tests.c186 GetSignatureData(&h->body_signature)[0] ^= 0x34; in VerifyKernelPreambleTest()
193 h->body_signature.sig_offset = 0; in VerifyKernelPreambleTest()
194 h->body_signature.sig_size = 0; in VerifyKernelPreambleTest()
200 h->body_signature.sig_offset = hsize; in VerifyKernelPreambleTest()
Dvb20_api_tests.c81 pre->body_signature.data_size = mock_body_size; in reset_common_data()
82 pre->body_signature.sig_size = mock_sig_size; in reset_common_data()
382 pre->body_signature.sig_size++; in check_hash_tests()
Dvboot_common3_tests.c244 h->body_signature.sig_offset = 0; in VerifyFirmwarePreambleTest()
245 h->body_signature.sig_size = 0; in VerifyFirmwarePreambleTest()
257 h->body_signature.sig_offset = hsize; in VerifyFirmwarePreambleTest()
Dvb20_common3_tests.c276 h->body_signature.sig_offset = 0; in test_verify_fw_preamble()
277 h->body_signature.sig_size = 0; in test_verify_fw_preamble()
291 h->body_signature.sig_offset = hsize; in test_verify_fw_preamble()
Dvboot_kernel_tests.c170 kph.body_signature.data_size = 70144; in ResetMocks()
751 kph.body_signature.data_size = 8192; in LoadKernelTest()
/external/vboot_reference/firmware/lib20/
Dapi.c98 sd->hash_remaining_size = pre->body_signature.data_size; in vb2api_init_hash()
101 *size = pre->body_signature.data_size; in vb2api_init_hash()
105 pre->body_signature.data_size); in vb2api_init_hash()
190 rv = vb2_verify_digest(&key, &pre->body_signature, digest, &wb); in vb2api_check_hash()
Dcommon.c258 &preamble->body_signature)) { in vb2_verify_fw_preamble()
/external/vboot_reference/firmware/include/
Dvboot_struct.h123 VbSignature body_signature; member
165 VbSignature body_signature; member
215 VbSignature body_signature; member
252 VbSignature body_signature; member
/external/vboot_reference/host/lib/include/
Dhost_common.h36 const VbSignature *body_signature,
52 const VbSignature *body_signature,
/external/vboot_reference/firmware/lib/
Dvboot_firmware.c247 preamble->body_signature.data_size) { in LoadFirmware()
250 (int)preamble->body_signature.data_size)); in LoadFirmware()
259 &preamble->body_signature, in LoadFirmware()
Dvboot_kernel.c358 preamble->body_signature.data_size; in LoadKernel()
359 } else if (preamble->body_signature.data_size > in LoadKernel()
373 body_toread = preamble->body_signature.data_size; in LoadKernel()
407 &preamble->body_signature, data_key)) { in LoadKernel()
Dvboot_common.c354 &preamble->body_signature)) { in VerifyFirmwarePreamble()
433 &preamble->body_signature)) { in VerifyKernelPreamble()
/external/vboot_reference/futility/
Dvb1_helper.c350 preamble->body_signature.data_size); in UnpackKPart()
376 g_kernel_blob_size = preamble->body_signature.data_size; in UnpackKPart()
379 if (g_kernel_blob_size < preamble->body_signature.data_size) in UnpackKPart()
581 g_preamble->body_signature.data_size); in VerifyKernelBlob()
615 &g_preamble->body_signature, rsa)) { in VerifyKernelBlob()
Dcmd_vbutil_firmware.c272 preamble->body_signature.data_size); in Verify()
284 VerifyData(fv_data, fv_size, &preamble->body_signature, in Verify()
Dcmd_show.c364 preamble->body_signature.data_size); in futil_cb_show_fw_preamble()
388 VerifyData(fv_data, fv_size, &preamble->body_signature, rsa)) { in futil_cb_show_fw_preamble()
467 preamble->body_signature.data_size); in futil_cb_show_kernel_preamble()
509 &preamble->body_signature, rsa)) { in futil_cb_show_kernel_preamble()
Dcmd_sign.c165 uint32_t fw_size = preamble->body_signature.data_size; in futil_cb_sign_fw_vblock()
/external/vboot_reference/firmware/lib20/include/
Dvb2_struct.h165 struct vb2_signature body_signature; member