/external/vboot_reference/tests/ |
vb20_rsa_padding_tests.c | 45 uint8_t workbuf[VB2_VERIFY_DIGEST_WORKBUF_BYTES] local 52 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); 78 uint8_t workbuf[VB2_VERIFY_DIGEST_WORKBUF_BYTES] local 84 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); 91 vb2_workbuf_init(&wb, workbuf, sizeof(sig) * 3 - 1); 94 "vb2_rsa_verify_digest() small workbuf"); 95 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); [all...] |
vb20_api_tests.c | 20 static uint8_t workbuf[VB2_WORKBUF_RECOMMENDED_SIZE] variable 56 memset(workbuf, 0xaa, sizeof(workbuf)); 59 cc.workbuf = workbuf; 60 cc.workbuf_size = sizeof(workbuf); 80 (cc.workbuf + sd->workbuf_preamble_offset); 93 (cc.workbuf + sd->workbuf_data_key_offset); 252 "hash uses workbuf"); 278 VB2_ERROR_API_INIT_HASH_WORKBUF, "init hash workbuf"); [all...] |
vb20_misc_tests.c | 20 static uint8_t workbuf[VB2_WORKBUF_RECOMMENDED_SIZE] variable 64 memset(workbuf, 0xaa, sizeof(workbuf)); 67 cc.workbuf = workbuf; 68 cc.workbuf_size = sizeof(workbuf); 192 "workbuf used"); 195 k = (struct vb2_packed_key *)(cc.workbuf + sd->workbuf_data_key_offset); 200 TEST_EQ(memcmp(cc.workbuf + sd->workbuf_data_key_offset + 206 "workbuf used after") [all...] |
vb21_api_tests.c | 26 static uint8_t workbuf[VB2_WORKBUF_RECOMMENDED_SIZE] variable 73 memset(workbuf, 0xaa, sizeof(workbuf)); 76 ctx.workbuf = workbuf; 77 ctx.workbuf_size = sizeof(workbuf); 96 (ctx.workbuf + sd->workbuf_preamble_offset); 207 (ctx.workbuf + sd->workbuf_preamble_offset); 221 "hash uses workbuf"); 249 VB2_ERROR_API_INIT_HASH_WORKBUF, "init hash workbuf"); [all...] |
vb2_common_tests.c | 75 TEST_EQ(vb2_offset_of(p0, wb.buf), 0, "Workbuf init aligned"); 80 "Workbuf init unaligned"); 84 TEST_EQ(wb.size, 0, "Workbuf init tiny unaligned size"); 89 TEST_EQ(vb2_offset_of(p0, ptr), 0, "Workbuf alloc"); 94 TEST_PTR_EQ(vb2_workbuf_alloc(&wb, 33), NULL, "Workbuf alloc too big"); 100 TEST_EQ(vb2_offset_of(p0, wb.buf), 0, "Workbuf free buf"); 107 TEST_EQ(vb2_offset_of(p0, ptr), 0, "Workbuf realloc");
|
vb21_misc_tests.c | 22 static uint8_t workbuf[VB2_WORKBUF_RECOMMENDED_SIZE] variable 67 memset(workbuf, 0xaa, sizeof(workbuf)); 70 ctx.workbuf = workbuf; 71 ctx.workbuf_size = sizeof(workbuf); 199 "workbuf used"); 202 k = (struct vb2_packed_key *)(ctx.workbuf + 208 TEST_EQ(memcmp(ctx.workbuf + sd->workbuf_data_key_offset + 214 "workbuf used after") [all...] |
vb20_verify_fw.c | 142 uint8_t workbuf[16384] __attribute__ ((aligned (VB2_WORKBUF_ALIGN))); local 157 ctx.workbuf = workbuf; 158 ctx.workbuf_size = sizeof(workbuf); 208 printf("Workbuf used = %d bytes\n", ctx.workbuf_used);
|
vb20_common2_tests.c | 80 uint8_t workbuf[VB2_VERIFY_DATA_WORKBUF_BYTES] local 89 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); 110 vb2_workbuf_init(&wb, workbuf, 4); 113 0, "vb2_verify_data() workbuf too small"); 114 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf));
|
vb2_misc_tests.c | 18 static uint8_t workbuf[VB2_WORKBUF_RECOMMENDED_SIZE] variable 33 memset(workbuf, 0xaa, sizeof(workbuf)); 36 cc.workbuf = workbuf; 37 cc.workbuf_size = sizeof(workbuf); 82 .workbuf = workbuf, 83 .workbuf_size = sizeof(workbuf), 97 /* Handle workbuf errors * [all...] |
vb2_secdata_tests.c | 33 uint8_t workbuf[VB2_WORKBUF_RECOMMENDED_SIZE] local 37 .workbuf = workbuf, 38 .workbuf_size = sizeof(workbuf),
|
vb2_api_tests.c | 20 static uint8_t workbuf[VB2_WORKBUF_RECOMMENDED_SIZE] variable 50 memset(workbuf, 0xaa, sizeof(workbuf)); 53 cc.workbuf = workbuf; 54 cc.workbuf_size = sizeof(workbuf);
|
vb21_common2_tests.c | 172 uint8_t workbuf[VB2_VERIFY_DATA_WORKBUF_BYTES] local 181 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); 203 vb2_workbuf_init(&wb, workbuf, 4); 207 "vb2_verify_data() workbuf too small"); 208 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf));
|
vb21_host_fw_preamble_tests.c | 42 uint8_t workbuf[VB2_VERIFY_FIRMWARE_PREAMBLE_WORKBUF_BYTES] local 46 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf));
|
vb21_host_keyblock_tests.c | 32 uint8_t workbuf[VB2_KEY_BLOCK_VERIFY_WORKBUF_BYTES] local 36 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf));
|
vb2_nvstorage_tests.c | 66 uint8_t workbuf[VB2_WORKBUF_RECOMMENDED_SIZE] local 70 .workbuf = workbuf, 71 .workbuf_size = sizeof(workbuf),
|
vb21_common_tests.c | 223 uint8_t workbuf[VB2_VERIFY_DATA_WORKBUF_BYTES] local 227 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); 262 uint8_t workbuf[VB2_KEY_BLOCK_VERIFY_WORKBUF_BYTES] local 289 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); 389 uint8_t workbuf[VB2_VERIFY_FIRMWARE_PREAMBLE_WORKBUF_BYTES] local 429 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf));
|
vb20_common3_tests.c | 36 uint8_t workbuf[VB2_KEY_BLOCK_VERIFY_WORKBUF_BYTES] local 44 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); 179 uint8_t workbuf[VB2_VERIFY_FIRMWARE_PREAMBLE_WORKBUF_BYTES] local 184 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf));
|
vb21_host_sig_tests.c | 49 uint8_t workbuf[VB2_VERIFY_DATA_WORKBUF_BYTES] local 58 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf));
|
/prebuilts/go/darwin-x86/src/runtime/ |
mgcwork.go | 25 // A wbufptr holds a workbuf*, but protects it from write barriers. 27 // Write barriers on workbuf pointers may also be dangerous in the GC. 30 func wbufptrOf(w *workbuf) wbufptr { 34 func (wp wbufptr) ptr() *workbuf { 35 return (*workbuf)(unsafe.Pointer(wp)) 165 throw("dispose: workbuf is empty") 207 inuse bool // This workbuf is in use by some gorotuine and is not on the work.empty/partial/full queues. 208 log [4]int // line numbers forming a history of ownership changes to workbuf 211 type workbuf struct { type 217 // workbuf factory routines. These funcs are used to manage th [all...] |
/prebuilts/go/linux-x86/src/runtime/ |
mgcwork.go | 25 // A wbufptr holds a workbuf*, but protects it from write barriers. 27 // Write barriers on workbuf pointers may also be dangerous in the GC. 30 func wbufptrOf(w *workbuf) wbufptr { 34 func (wp wbufptr) ptr() *workbuf { 35 return (*workbuf)(unsafe.Pointer(wp)) 165 throw("dispose: workbuf is empty") 207 inuse bool // This workbuf is in use by some gorotuine and is not on the work.empty/partial/full queues. 208 log [4]int // line numbers forming a history of ownership changes to workbuf 211 type workbuf struct { type 217 // workbuf factory routines. These funcs are used to manage th [all...] |
/external/vboot_reference/firmware/lib21/ |
api.c | 58 (ctx->workbuf + sd->workbuf_preamble_offset); 74 /* Allocate workbuf space for the hash */ 77 (ctx->workbuf + sd->workbuf_hash_offset); 85 sd->workbuf_hash_offset = vb2_offset_of(ctx->workbuf, dc); 90 sd->hash_tag = vb2_offset_of(ctx->workbuf, sig); 120 (ctx->workbuf + sd->workbuf_hash_offset); 135 sig = (const struct vb2_signature *)(ctx->workbuf + sd->hash_tag);
|
misc.c | 143 sd->workbuf_data_key_offset = vb2_offset_of(ctx->workbuf, key_data); 146 /* Data key will persist in the workbuf after we return */ 158 uint8_t *key_data = ctx->workbuf + sd->workbuf_data_key_offset; 231 sd->workbuf_preamble_offset = vb2_offset_of(ctx->workbuf, pre);
|
/external/vboot_reference/firmware/lib20/ |
api.c | 57 (ctx->workbuf + sd->workbuf_preamble_offset); 63 /* Allocate workbuf space for the hash */ 66 (ctx->workbuf + sd->workbuf_hash_offset); 74 sd->workbuf_hash_offset = vb2_offset_of(ctx->workbuf, dc); 92 ctx->workbuf + sd->workbuf_data_key_offset, 128 (ctx->workbuf + sd->workbuf_hash_offset); 144 (ctx->workbuf + sd->workbuf_preamble_offset); 181 ctx->workbuf + sd->workbuf_data_key_offset,
|
misc.c | 116 sd->workbuf_data_key_offset = vb2_offset_of(ctx->workbuf, key_data); 123 /* Data key will persist in the workbuf after we return */ 135 uint8_t *key_data = ctx->workbuf + sd->workbuf_data_key_offset; 219 sd->workbuf_preamble_offset = vb2_offset_of(ctx->workbuf, pre);
|
/external/vboot_reference/firmware/2lib/ |
2api.c | 110 (ctx->workbuf + sd->workbuf_hash_offset);
|