Home
last modified time | relevance | path

Searched refs:vb2_signature (Results 1 – 18 of 18) sorted by relevance

/external/vboot_reference/firmware/lib20/include/
Dvb2_struct.h45 struct vb2_signature { struct
99 struct vb2_signature keyblock_signature;
107 struct vb2_signature keyblock_checksum_unused;
151 struct vb2_signature preamble_signature;
165 struct vb2_signature body_signature;
Dvb2_common.h23 uint8_t *vb2_signature_data(struct vb2_signature *sig);
65 const struct vb2_signature *sig);
105 struct vb2_signature *sig,
122 struct vb2_signature *sig,
/external/vboot_reference/firmware/lib21/
Dcommon.c176 int vb2_verify_signature(const struct vb2_signature *sig, uint32_t size) in vb2_verify_signature()
222 static uint8_t *vb2_signature_data(struct vb2_signature *sig) in vb2_signature_data()
228 struct vb2_signature *sig, in vb2_verify_digest()
262 struct vb2_signature *sig, in vb2_verify_data()
345 struct vb2_signature *sig; in vb2_verify_keyblock()
353 sig = (struct vb2_signature *)((uint8_t *)block + sig_offset); in vb2_verify_keyblock()
381 struct vb2_signature *sig; in vb2_verify_fw_preamble()
415 sig = (struct vb2_signature *) in vb2_verify_fw_preamble()
436 sig = (struct vb2_signature *)((uint8_t *)preamble + in vb2_verify_fw_preamble()
Dapi.c46 const struct vb2_signature *sig = NULL; in vb2api_init_hash2()
63 sig = (const struct vb2_signature *) in vb2api_init_hash2()
126 const struct vb2_signature *sig; in vb2api_check_hash()
135 sig = (const struct vb2_signature *)(ctx->workbuf + sd->hash_tag); in vb2api_check_hash()
/external/vboot_reference/tests/
Dvb21_common_tests.c40 sizeof(struct vb2_signature), in test_struct_packing()
220 struct vb2_signature *sig; in test_verify_hash()
257 struct vb2_signature *sig; in test_verify_keyblock()
345 sig = (struct vb2_signature *)(buf + kbuf->sig_offset); in test_verify_keyblock()
352 sig = (struct vb2_signature *)(buf + kbuf->sig_offset); in test_verify_keyblock()
359 sig = (struct vb2_signature *)(buf + kbuf->sig_offset); in test_verify_keyblock()
382 struct vb2_signature *hashes[3]; in test_verify_fw_preamble()
384 struct vb2_signature *sig; in test_verify_fw_preamble()
418 (const struct vb2_signature **)hashes, in test_verify_fw_preamble()
470 sig = (struct vb2_signature *)(buf + pre->hash_offset); in test_verify_fw_preamble()
[all …]
Dvb20_common_tests.c24 sizeof(struct vb2_signature), in test_struct_packing()
76 struct vb2_signature s = {.sig_offset = sizeof(s)}; in test_helper_functions()
82 struct vb2_signature s = {.sig_offset = 123}; in test_helper_functions()
147 struct vb2_signature s = {.sig_offset = sizeof(s), in test_helper_functions()
160 struct vb2_signature s = {.sig_offset = 100, in test_helper_functions()
Dvb21_common2_tests.c115 static void test_verify_signature(const struct vb2_signature *sig) in test_verify_signature()
117 struct vb2_signature *sig2; in test_verify_signature()
124 sig2 = (struct vb2_signature *)buf2; in test_verify_signature()
170 const struct vb2_signature *sig) in test_verify_data()
177 struct vb2_signature *sig2; in test_verify_data()
188 sig2 = (struct vb2_signature *)buf2; in test_verify_data()
249 struct vb2_signature *sig2 = NULL; in test_algorithm()
Dvb20_common2_tests.c78 const struct vb2_signature *sig) in test_verify_data()
87 struct vb2_signature *sig2; in test_verify_data()
92 sig2 = (struct vb2_signature *)malloc(sig_total_size); in test_verify_data()
144 struct vb2_signature *sig = NULL; in test_algorithm()
165 sig = (struct vb2_signature *) in test_algorithm()
Dvb21_host_fw_preamble_tests.c34 struct vb2_signature *hashes[3]; in preamble_tests()
78 (const struct vb2_signature **)hashes, in preamble_tests()
102 (const struct vb2_signature **)hashes, in preamble_tests()
Dvb21_host_sig_tests.c46 struct vb2_signature *sig, *sig2; in sig_tests()
128 sig = (struct vb2_signature *)(buf + c_sig_offs); in sig_tests()
146 sig = (struct vb2_signature *)(buf + c_sig_offs); in sig_tests()
149 sig2 = (struct vb2_signature *)(buf + c_sig_offs + sig->c.total_size); in sig_tests()
Dvb21_api_tests.c68 struct vb2_signature *sig; in reset_common_data()
201 struct vb2_signature *sig; in init_hash_tests()
208 sig = (struct vb2_signature *)((uint8_t *)pre + pre->hash_offset); in init_hash_tests()
308 struct vb2_signature *sig; in check_hash_tests()
314 sig = (struct vb2_signature *)((uint8_t *)pre + pre->hash_offset); in check_hash_tests()
/external/vboot_reference/firmware/lib20/
Dcommon.c14 uint8_t *vb2_signature_data(struct vb2_signature *sig) in vb2_signature_data()
60 const struct vb2_signature *sig) in vb2_verify_signature_inside()
68 struct vb2_signature *sig, in vb2_verify_digest()
87 struct vb2_signature *sig, in vb2_verify_data()
138 struct vb2_signature *sig; in vb2_verify_keyblock()
207 struct vb2_signature *sig = &preamble->preamble_signature; in vb2_verify_fw_preamble()
/external/vboot_reference/host/lib21/
Dhost_signature.c79 int vb2_sign_data(struct vb2_signature **sig_ptr, in vb2_sign_data()
85 struct vb2_signature s = { in vb2_sign_data()
179 *sig_ptr = (struct vb2_signature *)buf; in vb2_sign_data()
192 size += sizeof(struct vb2_signature); in vb2_sig_size_for_key()
225 struct vb2_signature *sig = NULL; in vb2_sign_object()
253 struct vb2_signature *sig = NULL; in vb2_sign_object_multiple()
Dhost_fw_preamble.c21 const struct vb2_signature **hash_list, in vb2_fw_preamble_create()
/external/vboot_reference/firmware/lib21/include/
Dvb2_common.h112 int vb2_verify_signature(const struct vb2_signature *sig,
125 struct vb2_signature *sig,
142 struct vb2_signature *sig,
Dvb2_struct.h198 struct vb2_signature { struct
/external/vboot_reference/host/lib21/include/
Dhost_fw_preamble2.h30 const struct vb2_signature **hash_list,
Dhost_signature2.h27 int vb2_sign_data(struct vb2_signature **sig_ptr,