HomeSort by relevance Sort by last modified time
    Searched refs:sig_offset (Results 1 - 21 of 21) sorted by null

  /external/vboot_reference/host/lib21/include/
host_signature2.h 63 * @param sig_offset Offset in buffer at which to store signature. All
69 uint32_t sig_offset,
78 * @param sig_offset Offset to start signatures. All data before this
84 uint32_t sig_offset,
  /external/vboot_reference/host/lib21/
host_keyblock.c 52 kb.sig_offset = kb.key_offset + key->c.total_size;
53 kb.c.total_size = kb.sig_offset + sig_size;
69 if (vb2_sign_object_multiple(buf, kb.sig_offset, signing_keys,
host_signature.c 112 s.sig_offset = s.c.fixed_size + s.c.desc_size;
117 s.c.total_size = s.sig_offset + s.sig_size;
164 memcpy(buf + s.sig_offset, sig_digest, sig_digest_size);
169 buf + s.sig_offset,
220 uint32_t sig_offset,
228 rv = vb2_sign_data(&sig, buf, sig_offset, key, desc);
232 if (sig_offset + sig->c.total_size > c->total_size) {
237 memcpy(buf + sig_offset, sig, sig->c.total_size);
244 uint32_t sig_offset,
249 uint32_t sig_next = sig_offset;
    [all...]
host_fw_preamble.c 51 fp.sig_offset = hash_next;
56 fp.c.total_size = fp.sig_offset + sig_size;
75 if (vb2_sign_object(buf, fp.sig_offset, signing_key, NULL)) {
  /external/vboot_reference/firmware/lib21/
common.c 205 sig->sig_offset, sig->sig_size);
224 return (uint8_t *)sig + sig->sig_offset;
313 uint32_t min_offset = 0, sig_offset; local
343 sig_offset = block->sig_offset;
344 for (i = 0; i < block->sig_count; i++, sig_offset = min_offset) {
349 sig_offset);
353 sig = (struct vb2_signature *)((uint8_t *)block + sig_offset);
357 block->c.total_size - sig_offset);
366 if (sig->data_size != block->sig_offset)
    [all...]
api.c 159 if (vb2_safe_memcmp(digest, (const uint8_t *)sig + sig->sig_offset,
  /external/vboot_reference/firmware/lib21/include/
vb2_struct.h 196 * 3) Signature data (pointed to by h.sig_offset)
203 uint32_t sig_offset; member in struct:vb2_signature
247 * 4) Signatures (first signature pointed to by h.sig_offset)
250 * signatures must sign all data up to sig_offset.
284 uint32_t sig_offset; member in struct:vb2_keyblock
307 * 4) Signature (pointed to by h.sig_offset)
322 uint32_t sig_offset; member in struct:vb2_fw_preamble
  /external/vboot_reference/tests/
vb20_common_tests.c 76 struct vb2_signature s = {.sig_offset = sizeof(s)};
82 struct vb2_signature s = {.sig_offset = 123};
147 struct vb2_signature s = {.sig_offset = sizeof(s),
160 struct vb2_signature s = {.sig_offset = 100,
vb21_api_tests.c 69 uint32_t sig_offset; local
98 pre->hash_offset = sig_offset = sizeof(*pre);
108 memcpy((uint8_t *)pre + sig_offset, sig, sig->c.total_size);
109 sig_offset += sig->c.total_size;
114 sd->workbuf_preamble_size = sig_offset;
341 *((uint8_t *)sig + sig->sig_offset) ^= 0x55;
353 *((uint8_t *)sig + sig->sig_offset) ^= 0x55;
vb21_common_tests.c 242 *((uint8_t *)sig + sig->sig_offset) ^= 0xab;
325 vb2_sign_data(&sig, buf, kbuf->sig_offset, prik[0], NULL);
326 memcpy(buf + kbuf->sig_offset, sig, sig->c.total_size);
345 sig = (struct vb2_signature *)(buf + kbuf->sig_offset);
352 sig = (struct vb2_signature *)(buf + kbuf->sig_offset);
359 sig = (struct vb2_signature *)(buf + kbuf->sig_offset);
456 vb2_sign_data(&sig, buf, pre->sig_offset, prikhash, NULL);
457 memcpy(buf + pre->sig_offset, sig, sig->c.total_size);
490 sig = (struct vb2_signature *)(buf + pre->sig_offset);
497 sig = (struct vb2_signature *)(buf + pre->sig_offset);
    [all...]
vboot_common3_tests.c 89 h->key_block_checksum.sig_offset = hsize;
107 h->key_block_signature.sig_offset = hsize;
223 h->preamble_signature.sig_offset = hsize;
244 h->body_signature.sig_offset = 0;
257 h->body_signature.sig_offset = hsize;
vboot_common2_tests.c 174 h->preamble_signature.sig_offset = hsize;
193 h->body_signature.sig_offset = 0;
200 h->body_signature.sig_offset = hsize;
vb20_common3_tests.c 106 h->keyblock_signature.sig_offset = hsize;
252 h->preamble_signature.sig_offset = hsize;
276 h->body_signature.sig_offset = 0;
291 h->body_signature.sig_offset = hsize;
vboot_firmware_tests.c 177 if (42 == mpreamble[hash_fw_index].body_signature.sig_offset) {
183 return mpreamble[hash_fw_index].body_signature.sig_offset;
405 mpreamble[0].body_signature.sig_offset = VBERROR_UNKNOWN;
416 mpreamble[0].body_signature.sig_offset = 42; /* Mock hashing wrong amount */
vb20_common2_tests.c 86 uint32_t sig_total_size = sig->sig_offset + sig->sig_size;
vb21_common2_tests.c 232 buf2[sig2->sig_offset] ^= 0x5A;
  /external/vboot_reference/firmware/lib20/include/
vb2_struct.h 47 uint32_t sig_offset; member in struct:vb2_signature
74 * by keyblock_checksum.sig_offset.
76 * by keyblock_signature.sig_offset.
135 * body_signature.sig_offset.
137 * data), pointed to by preamble_signature.sig_offset.
  /external/vboot_reference/host/lib/
host_signature.c 29 sig->sig_offset = sizeof(VbSignature);
38 sig->sig_offset = OffsetOf(sig, sig_data);
68 sig->sig_offset = sizeof(VbSignature);
  /external/vboot_reference/firmware/lib20/
common.c 16 return (uint8_t *)sig + sig->sig_offset;
64 sig->sig_offset, sig->sig_size);
  /external/vboot_reference/firmware/lib/
vboot_common.c 45 return (uint8_t *)sig + sig->sig_offset;
50 return (const uint8_t *)sig + sig->sig_offset;
100 sig->sig_offset, sig->sig_size);
  /external/vboot_reference/firmware/include/
vboot_struct.h 30 uint64_t sig_offset; member in struct:VbSignature
58 * by key_block_checksum.sig_offset.
60 * by key_block_signature.sig_offset.
140 * body_signature.sig_offset.
142 * data), pointed to by preamble_signature.sig_offset.
189 * body_signature.sig_offset.
191 * data), pointed to by preamble_signature.sig_offset.
224 * body_signature.sig_offset.
226 * data), pointed to by preamble_signature.sig_offset.

Completed in 111 milliseconds