Lines Matching refs:gbb

135 	GoogleBinaryBlockHeader *gbb;  in create_gbb()  local
171 gbb = (GoogleBinaryBlockHeader *) buf; in create_gbb()
172 memcpy(gbb->signature, GBB_SIGNATURE, GBB_SIGNATURE_SIZE); in create_gbb()
173 gbb->major_version = GBB_MAJOR_VER; in create_gbb()
174 gbb->minor_version = GBB_MINOR_VER; in create_gbb()
175 gbb->header_size = GBB_HEADER_SIZE; in create_gbb()
176 gbb->flags = 0; in create_gbb()
179 gbb->hwid_offset = i; in create_gbb()
180 gbb->hwid_size = val[0]; in create_gbb()
183 gbb->rootkey_offset = i; in create_gbb()
184 gbb->rootkey_size = val[1]; in create_gbb()
187 gbb->bmpfv_offset = i; in create_gbb()
188 gbb->bmpfv_size = val[2]; in create_gbb()
191 gbb->recovery_key_offset = i; in create_gbb()
192 gbb->recovery_key_size = val[3]; in create_gbb()
367 GoogleBinaryBlockHeader *gbb; in do_gbb_utility() local
471 gbb = FindGbbHeader(inbuf, filesize); in do_gbb_utility()
472 if (!gbb) { in do_gbb_utility()
476 gbb_base = (uint8_t *) gbb; in do_gbb_utility()
481 gbb->hwid_size ? (char *)(gbb_base + in do_gbb_utility()
482 gbb-> in do_gbb_utility()
485 print_hwid_digest(gbb, "digest: ", "\n"); in do_gbb_utility()
488 printf("flags: 0x%08x\n", gbb->flags); in do_gbb_utility()
492 gbb_base + gbb->rootkey_offset, in do_gbb_utility()
493 gbb->rootkey_size); in do_gbb_utility()
496 gbb_base + gbb->bmpfv_offset, in do_gbb_utility()
497 gbb->bmpfv_size); in do_gbb_utility()
501 gbb_base + gbb->recovery_key_offset, in do_gbb_utility()
502 gbb->recovery_key_size); in do_gbb_utility()
531 gbb = FindGbbHeader(inbuf, filesize); in do_gbb_utility()
532 if (!gbb) { in do_gbb_utility()
536 gbb_base = (uint8_t *) gbb; in do_gbb_utility()
549 gbb = FindGbbHeader(outbuf, filesize); in do_gbb_utility()
550 if (!gbb) { in do_gbb_utility()
555 gbb_base = (uint8_t *) gbb; in do_gbb_utility()
558 if (strlen(opt_hwid) + 1 > gbb->hwid_size) { in do_gbb_utility()
562 gbb->hwid_size); in do_gbb_utility()
566 memset(gbb_base + gbb->hwid_offset, 0, in do_gbb_utility()
567 gbb->hwid_size); in do_gbb_utility()
568 strcpy((char *)(gbb_base + gbb->hwid_offset), in do_gbb_utility()
570 update_hwid_digest(gbb); in do_gbb_utility()
584 gbb->flags = val; in do_gbb_utility()
590 gbb_base + gbb->rootkey_offset, in do_gbb_utility()
591 gbb->rootkey_size); in do_gbb_utility()
594 gbb_base + gbb->bmpfv_offset, in do_gbb_utility()
595 gbb->bmpfv_size); in do_gbb_utility()
598 gbb_base + gbb->recovery_key_offset, in do_gbb_utility()
599 gbb->recovery_key_size); in do_gbb_utility()