/external/vboot_reference/host/lib/include/ |
D | host_signature.h | 18 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,
|
D | host_common.h | 36 const VbSignature *body_signature, 52 const VbSignature *body_signature,
|
/external/vboot_reference/host/lib/ |
D | host_signature.c | 24 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 …]
|
D | host_common.c | 20 const VbSignature *body_signature, in CreateFirmwarePreamble() 32 VbSignature *sigtmp; in CreateFirmwarePreamble() 78 const VbSignature *body_signature, in CreateKernelPreamble() 91 VbSignature *sigtmp; in CreateKernelPreamble()
|
D | host_keyblock.c | 27 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/ |
D | vboot_struct.h | 28 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/ |
D | vboot_common.h | 61 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/ |
D | vboot_common.c | 43 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/ |
D | vboot_common2_tests.c | 48 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()
|
D | vb20_common3_tests.c | 24 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()
|
D | vboot_common_tests.c | 24 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()
|
D | vboot_common3_tests.c | 159 VbSignature *sig = CalculateSignature( in ReSignFirmwarePreamble() 176 VbSignature* body_sig = SignatureAlloc(56, 78); in VerifyFirmwarePreambleTest()
|
D | vboot_firmware_tests.c | 186 int VerifyDigest(const uint8_t* digest, const VbSignature *sig, in VerifyDigest()
|
D | vboot_kernel_tests.c | 280 int VerifyData(const uint8_t *data, uint64_t size, const VbSignature *sig, in VerifyData()
|
/external/vboot_reference/futility/ |
D | cmd_vbutil_firmware.c | 86 VbSignature *body_sig; in Vblock()
|
D | cmd_sign.c | 336 VbSignature *body_sig; in futil_cb_sign_raw_firmware() 385 VbSignature *body_sig; in write_new_preamble()
|
D | vb1_helper.c | 403 VbSignature *body_sig; in SignKernelBlob()
|