Home
last modified time | relevance | path

Searched refs:workbuf (Results 1 – 25 of 28) sorted by relevance

12

/external/vboot_reference/tests/
Dvb20_rsa_padding_tests.c45 uint8_t workbuf[VB2_VERIFY_DIGEST_WORKBUF_BYTES] in test_signatures() local
52 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_signatures()
78 uint8_t workbuf[VB2_VERIFY_DIGEST_WORKBUF_BYTES] in test_verify_digest() local
84 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_digest()
91 vb2_workbuf_init(&wb, workbuf, sizeof(sig) * 3 - 1); in test_verify_digest()
95 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_digest()
Dvb21_api_tests.c26 static uint8_t workbuf[VB2_WORKBUF_RECOMMENDED_SIZE] variable
73 memset(workbuf, 0xaa, sizeof(workbuf)); in reset_common_data()
76 ctx.workbuf = workbuf; in reset_common_data()
77 ctx.workbuf_size = sizeof(workbuf); in reset_common_data()
96 (ctx.workbuf + sd->workbuf_preamble_offset); in reset_common_data()
207 (ctx.workbuf + sd->workbuf_preamble_offset); in init_hash_tests()
298 (ctx.workbuf + sd->workbuf_hash_offset); in extend_hash_tests()
313 (ctx.workbuf + sd->workbuf_preamble_offset); in check_hash_tests()
316 (ctx.workbuf + sd->workbuf_hash_offset); in check_hash_tests()
Dvb20_api_tests.c20 static uint8_t workbuf[VB2_WORKBUF_RECOMMENDED_SIZE] variable
56 memset(workbuf, 0xaa, sizeof(workbuf)); in reset_common_data()
59 cc.workbuf = workbuf; in reset_common_data()
60 cc.workbuf_size = sizeof(workbuf); in reset_common_data()
80 (cc.workbuf + sd->workbuf_preamble_offset); in reset_common_data()
93 (cc.workbuf + sd->workbuf_data_key_offset); in reset_common_data()
291 k = (struct vb2_packed_key *)(cc.workbuf + sd->workbuf_data_key_offset); in init_hash_tests()
326 (cc.workbuf + sd->workbuf_hash_offset); in extend_hash_tests()
381 (cc.workbuf + sd->workbuf_preamble_offset); in check_hash_tests()
Dvb2_misc_tests.c18 static uint8_t workbuf[VB2_WORKBUF_RECOMMENDED_SIZE] variable
33 memset(workbuf, 0xaa, sizeof(workbuf)); in reset_common_data()
36 cc.workbuf = workbuf; in reset_common_data()
37 cc.workbuf_size = sizeof(workbuf); in reset_common_data()
82 .workbuf = workbuf, in init_context_tests()
83 .workbuf_size = sizeof(workbuf), in init_context_tests()
102 c.workbuf_size = sizeof(workbuf); in init_context_tests()
105 c.workbuf++; in init_context_tests()
119 TEST_PTR_EQ(wb.buf, workbuf + 16, "vb_workbuf_from_ctx() buf"); in misc_tests()
Dvb2_api_tests.c20 static uint8_t workbuf[VB2_WORKBUF_RECOMMENDED_SIZE] variable
50 memset(workbuf, 0xaa, sizeof(workbuf)); in reset_common_data()
53 cc.workbuf = workbuf; in reset_common_data()
54 cc.workbuf_size = sizeof(workbuf); in reset_common_data()
Dvb20_misc_tests.c20 static uint8_t workbuf[VB2_WORKBUF_RECOMMENDED_SIZE] variable
64 memset(workbuf, 0xaa, sizeof(workbuf)); in reset_common_data()
67 cc.workbuf = workbuf; in reset_common_data()
68 cc.workbuf_size = sizeof(workbuf); in reset_common_data()
195 k = (struct vb2_packed_key *)(cc.workbuf + sd->workbuf_data_key_offset); in verify_keyblock_tests()
200 TEST_EQ(memcmp(cc.workbuf + sd->workbuf_data_key_offset + in verify_keyblock_tests()
Dvb20_common2_tests.c80 uint8_t workbuf[VB2_VERIFY_DATA_WORKBUF_BYTES] in test_verify_data() local
89 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_data()
110 vb2_workbuf_init(&wb, workbuf, 4); in test_verify_data()
114 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_data()
Dvb2_secdata_tests.c33 uint8_t workbuf[VB2_WORKBUF_RECOMMENDED_SIZE] in secdata_test() local
37 .workbuf = workbuf, in secdata_test()
38 .workbuf_size = sizeof(workbuf), in secdata_test()
Dvb21_misc_tests.c22 static uint8_t workbuf[VB2_WORKBUF_RECOMMENDED_SIZE] variable
67 memset(workbuf, 0xaa, sizeof(workbuf)); in reset_common_data()
70 ctx.workbuf = workbuf; in reset_common_data()
71 ctx.workbuf_size = sizeof(workbuf); in reset_common_data()
202 k = (struct vb2_packed_key *)(ctx.workbuf + in load_keyblock_tests()
208 TEST_EQ(memcmp(ctx.workbuf + sd->workbuf_data_key_offset + in load_keyblock_tests()
Dvb20_verify_fw.c142 uint8_t workbuf[16384] __attribute__ ((aligned (VB2_WORKBUF_ALIGN))); in main() local
157 ctx.workbuf = workbuf; in main()
158 ctx.workbuf_size = sizeof(workbuf); in main()
Dvb21_common_tests.c223 uint8_t workbuf[VB2_VERIFY_DATA_WORKBUF_BYTES] in test_verify_hash() local
227 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_hash()
262 uint8_t workbuf[VB2_KEY_BLOCK_VERIFY_WORKBUF_BYTES] in test_verify_keyblock() local
289 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_keyblock()
389 uint8_t workbuf[VB2_VERIFY_FIRMWARE_PREAMBLE_WORKBUF_BYTES] in test_verify_fw_preamble() local
429 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_fw_preamble()
Dvb21_common2_tests.c172 uint8_t workbuf[VB2_VERIFY_DATA_WORKBUF_BYTES] in test_verify_data() local
181 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_data()
203 vb2_workbuf_init(&wb, workbuf, 4); in test_verify_data()
208 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_data()
Dvb21_host_fw_preamble_tests.c42 uint8_t workbuf[VB2_VERIFY_FIRMWARE_PREAMBLE_WORKBUF_BYTES] in preamble_tests() local
46 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in preamble_tests()
Dvb2_nvstorage_tests.c66 uint8_t workbuf[VB2_WORKBUF_RECOMMENDED_SIZE] in nv_storage_test() local
70 .workbuf = workbuf, in nv_storage_test()
71 .workbuf_size = sizeof(workbuf), in nv_storage_test()
Dvb20_common3_tests.c36 uint8_t workbuf[VB2_KEY_BLOCK_VERIFY_WORKBUF_BYTES] in test_verify_keyblock() local
44 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_keyblock()
179 uint8_t workbuf[VB2_VERIFY_FIRMWARE_PREAMBLE_WORKBUF_BYTES] in test_verify_fw_preamble() local
184 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_fw_preamble()
Dvb21_host_keyblock_tests.c32 uint8_t workbuf[VB2_KEY_BLOCK_VERIFY_WORKBUF_BYTES] in keyblock_tests() local
36 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in keyblock_tests()
Dvb21_host_sig_tests.c49 uint8_t workbuf[VB2_VERIFY_DATA_WORKBUF_BYTES] in sig_tests() local
58 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in sig_tests()
/external/vboot_reference/firmware/lib20/
Dapi.c57 (ctx->workbuf + sd->workbuf_preamble_offset); in vb2api_init_hash()
66 (ctx->workbuf + sd->workbuf_hash_offset); in vb2api_init_hash()
74 sd->workbuf_hash_offset = vb2_offset_of(ctx->workbuf, dc); in vb2api_init_hash()
92 ctx->workbuf + sd->workbuf_data_key_offset, in vb2api_init_hash()
128 (ctx->workbuf + sd->workbuf_hash_offset); in vb2api_check_hash()
144 (ctx->workbuf + sd->workbuf_preamble_offset); in vb2api_check_hash()
181 ctx->workbuf + sd->workbuf_data_key_offset, in vb2api_check_hash()
Dmisc.c116 sd->workbuf_data_key_offset = vb2_offset_of(ctx->workbuf, key_data); in vb2_load_fw_keyblock()
135 uint8_t *key_data = ctx->workbuf + sd->workbuf_data_key_offset; in vb2_load_fw_preamble()
219 sd->workbuf_preamble_offset = vb2_offset_of(ctx->workbuf, pre); in vb2_load_fw_preamble()
/external/vboot_reference/firmware/lib21/
Dapi.c58 (ctx->workbuf + sd->workbuf_preamble_offset); in vb2api_init_hash2()
77 (ctx->workbuf + sd->workbuf_hash_offset); in vb2api_init_hash2()
85 sd->workbuf_hash_offset = vb2_offset_of(ctx->workbuf, dc); in vb2api_init_hash2()
90 sd->hash_tag = vb2_offset_of(ctx->workbuf, sig); in vb2api_init_hash2()
120 (ctx->workbuf + sd->workbuf_hash_offset); in vb2api_check_hash()
135 sig = (const struct vb2_signature *)(ctx->workbuf + sd->hash_tag); in vb2api_check_hash()
Dmisc.c143 sd->workbuf_data_key_offset = vb2_offset_of(ctx->workbuf, key_data); in vb2_load_fw_keyblock()
158 uint8_t *key_data = ctx->workbuf + sd->workbuf_data_key_offset; in vb2_load_fw_preamble()
231 sd->workbuf_preamble_offset = vb2_offset_of(ctx->workbuf, pre); in vb2_load_fw_preamble()
/external/vboot_reference/firmware/2lib/include/
D2misc.h23 return (struct vb2_shared_data *)ctx->workbuf; in vb2_get_sd()
D2api.h113 uint8_t *workbuf; member
/external/vboot_reference/firmware/2lib/
D2misc.c30 vb2_workbuf_init(wb, ctx->workbuf + ctx->workbuf_used, in vb2_workbuf_from_ctx()
130 if (!vb2_aligned(ctx->workbuf, VB2_WORKBUF_ALIGN)) in vb2_init_context()
D2api.c110 (ctx->workbuf + sd->workbuf_hash_offset); in vb2api_extend_hash()

12