Home
last modified time | relevance | path

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

/external/vboot_reference/host/lib/include/
Dhost_signature.h18 void SignatureInit(VbSignature* sig, uint8_t* sig_data,
23 VbSignature* SignatureAlloc(uint64_t sig_size, uint64_t data_size);
29 int SignatureCopy(VbSignature* dest, const VbSignature* src);
36 VbSignature* CalculateChecksum(const uint8_t* data, uint64_t size);
43 VbSignature* CalculateHash(const uint8_t* data, uint64_t size,
50 VbSignature* CalculateSignature(const uint8_t* data, uint64_t size,
58 VbSignature* CalculateSignature_external(const uint8_t* data, uint64_t size,
Dhost_common.h36 const VbSignature *body_signature,
52 const VbSignature *body_signature,
/external/vboot_reference/host/lib/
Dhost_signature.c24 VbSignature* SignatureAlloc(uint64_t sig_size, uint64_t data_size) { in SignatureAlloc()
25 VbSignature* sig = (VbSignature*)malloc(sizeof(VbSignature) + sig_size); in SignatureAlloc()
29 sig->sig_offset = sizeof(VbSignature); in SignatureAlloc()
36 void SignatureInit(VbSignature* sig, uint8_t* sig_data, in SignatureInit()
44 int SignatureCopy(VbSignature* dest, const VbSignature* src) { in SignatureCopy()
54 VbSignature* CalculateChecksum(const uint8_t* data, uint64_t size) { in CalculateChecksum()
57 VbSignature* sig; in CalculateChecksum()
68 sig->sig_offset = sizeof(VbSignature); in CalculateChecksum()
78 VbSignature* CalculateHash(const uint8_t* data, uint64_t size, in CalculateHash()
82 VbSignature* sig = NULL; in CalculateHash()
[all …]
Dhost_common.c20 const VbSignature *body_signature, in CreateFirmwarePreamble()
32 VbSignature *sigtmp; in CreateFirmwarePreamble()
78 const VbSignature *body_signature, in CreateKernelPreamble()
91 VbSignature *sigtmp; in CreateKernelPreamble()
Dhost_keyblock.c27 VbSignature *sigtmp; in KeyBlockCreate()
54 Memset(&h->key_block_signature, 0, sizeof(VbSignature)); in KeyBlockCreate()
87 VbSignature *sigtmp; in KeyBlockCreate_external()
/external/vboot_reference/firmware/include/
Dvboot_struct.h28 typedef struct VbSignature { struct
35 } __attribute__((packed)) VbSignature; typedef
78 VbSignature key_block_signature;
83 VbSignature key_block_checksum;
112 VbSignature preamble_signature;
123 VbSignature body_signature;
154 VbSignature preamble_signature;
165 VbSignature body_signature;
200 VbSignature preamble_signature;
215 VbSignature body_signature;
[all …]
/external/vboot_reference/firmware/lib/include/
Dvboot_common.h61 uint8_t *GetSignatureData(VbSignature *sig);
62 const uint8_t *GetSignatureDataC(const VbSignature *sig);
78 const VbSignature *sig);
105 int VerifyData(const uint8_t *data, uint64_t size, const VbSignature *sig,
112 int VerifyDigest(const uint8_t *digest, const VbSignature *sig,
/external/vboot_reference/firmware/lib/
Dvboot_common.c43 uint8_t *GetSignatureData(VbSignature *sig) in GetSignatureData()
48 const uint8_t *GetSignatureDataC(const VbSignature *sig) in GetSignatureDataC()
96 const VbSignature *sig) in VerifySignatureInside()
99 sig, sizeof(VbSignature), in VerifySignatureInside()
146 int VerifyData(const uint8_t *data, uint64_t size, const VbSignature *sig, in VerifyData()
171 int VerifyDigest(const uint8_t *digest, const VbSignature *sig, in VerifyDigest()
190 const VbSignature *sig; in KeyBlockVerify()
311 const VbSignature *sig = &preamble->preamble_signature; in VerifyFirmwarePreamble()
398 const VbSignature *sig = &preamble->preamble_signature; in VerifyKernelPreamble()
/external/vboot_reference/tests/
Dvboot_common2_tests.c48 VbSignature *sig; in VerifyDataTest()
83 VbSignature *sig; in VerifyDigestTest()
111 VbSignature *sig = CalculateSignature((const uint8_t *)h, in ReSignKernelPreamble()
127 VbSignature *body_sig = SignatureAlloc(56, 78); in VerifyKernelPreambleTest()
Dvb20_common3_tests.c24 VbSignature *sig = in resign_keyblock()
28 SignatureCopy((VbSignature *)&h->keyblock_signature, sig); in resign_keyblock()
165 VbSignature *sig = CalculateSignature( in resign_fw_preamble()
168 SignatureCopy((VbSignature *)&h->preamble_signature, sig); in resign_fw_preamble()
187 VbSignature *body_sig = SignatureAlloc(56, 78); in test_verify_fw_preamble()
Dvboot_common_tests.c24 TEST_EQ(EXPECTED_VBSIGNATURE_SIZE, sizeof(VbSignature), in StructPackingTest()
132 VbSignature s = {sizeof(s), 128, 2000}; in VerifyHelperFunctions()
142 VbSignature s = {100, 4, 0}; in VerifyHelperFunctions()
Dvboot_common3_tests.c159 VbSignature *sig = CalculateSignature( in ReSignFirmwarePreamble()
176 VbSignature* body_sig = SignatureAlloc(56, 78); in VerifyFirmwarePreambleTest()
Dvboot_firmware_tests.c186 int VerifyDigest(const uint8_t* digest, const VbSignature *sig, in VerifyDigest()
Dvboot_kernel_tests.c280 int VerifyData(const uint8_t *data, uint64_t size, const VbSignature *sig, in VerifyData()
/external/vboot_reference/futility/
Dcmd_vbutil_firmware.c86 VbSignature *body_sig; in Vblock()
Dcmd_sign.c336 VbSignature *body_sig; in futil_cb_sign_raw_firmware()
385 VbSignature *body_sig; in write_new_preamble()
Dvb1_helper.c403 VbSignature *body_sig; in SignKernelBlob()