/external/vboot_reference/tests/ |
D | vb20_rsa_padding_tests.c | 45 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()
|
D | vb21_api_tests.c | 26 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()
|
D | vb20_api_tests.c | 20 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()
|
D | vb2_misc_tests.c | 18 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()
|
D | vb2_api_tests.c | 20 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()
|
D | vb20_misc_tests.c | 20 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()
|
D | vb20_common2_tests.c | 80 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()
|
D | vb2_secdata_tests.c | 33 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()
|
D | vb21_misc_tests.c | 22 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()
|
D | vb20_verify_fw.c | 142 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()
|
D | vb21_common_tests.c | 223 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()
|
D | vb21_common2_tests.c | 172 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()
|
D | vb21_host_fw_preamble_tests.c | 42 uint8_t workbuf[VB2_VERIFY_FIRMWARE_PREAMBLE_WORKBUF_BYTES] in preamble_tests() local 46 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in preamble_tests()
|
D | vb2_nvstorage_tests.c | 66 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()
|
D | vb20_common3_tests.c | 36 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()
|
D | vb21_host_keyblock_tests.c | 32 uint8_t workbuf[VB2_KEY_BLOCK_VERIFY_WORKBUF_BYTES] in keyblock_tests() local 36 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in keyblock_tests()
|
D | vb21_host_sig_tests.c | 49 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/ |
D | api.c | 57 (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()
|
D | misc.c | 116 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/ |
D | api.c | 58 (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()
|
D | misc.c | 143 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/ |
D | 2misc.h | 23 return (struct vb2_shared_data *)ctx->workbuf; in vb2_get_sd()
|
D | 2api.h | 113 uint8_t *workbuf; member
|
/external/vboot_reference/firmware/2lib/ |
D | 2misc.c | 30 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()
|
D | 2api.c | 110 (ctx->workbuf + sd->workbuf_hash_offset); in vb2api_extend_hash()
|