Home | History | Annotate | Download | only in futility

Lines Matching defs:gbb

50 		"                     \tCreate a GBB blob by given size list.\n"
55 " %s -c 0x100,0x1000,0x03DE80,0x1000 gbb.blob\n\n",
121 fprintf(stderr, "ERROR: multiple GBB headers found\n");
135 GoogleBinaryBlockHeader *gbb;
171 gbb = (GoogleBinaryBlockHeader *) buf;
172 memcpy(gbb->signature, GBB_SIGNATURE, GBB_SIGNATURE_SIZE);
173 gbb->major_version = GBB_MAJOR_VER;
174 gbb->minor_version = GBB_MINOR_VER;
175 gbb->header_size = GBB_HEADER_SIZE;
176 gbb->flags = 0;
179 gbb->hwid_offset = i;
180 gbb->hwid_size = val[0];
183 gbb->rootkey_offset = i;
184 gbb->rootkey_size = val[1];
187 gbb->bmpfv_offset = i;
188 gbb->bmpfv_size = val[2];
191 gbb->recovery_key_offset = i;
192 gbb->recovery_key_size = val[3];
367 GoogleBinaryBlockHeader *gbb;
471 gbb = FindGbbHeader(inbuf, filesize);
472 if (!gbb) {
473 fprintf(stderr, "ERROR: No GBB found in %s\n", infile);
476 gbb_base = (uint8_t *) gbb;
481 gbb->hwid_size ? (char *)(gbb_base +
482 gbb->
485 print_hwid_digest(gbb, "digest: ", "\n");
488 printf("flags: 0x%08x\n", gbb->flags);
492 gbb_base + gbb->rootkey_offset,
493 gbb->rootkey_size);
496 gbb_base + gbb->bmpfv_offset,
497 gbb->bmpfv_size);
501 gbb_base + gbb->recovery_key_offset,
502 gbb->recovery_key_size);
531 gbb = FindGbbHeader(inbuf, filesize);
532 if (!gbb) {
533 fprintf(stderr, "ERROR: No GBB found in %s\n", infile);
536 gbb_base = (uint8_t *) gbb;
549 gbb = FindGbbHeader(outbuf, filesize);
550 if (!gbb) {
552 "INTERNAL ERROR: No GBB found in outbuf\n");
555 gbb_base = (uint8_t *) gbb;
558 if (strlen(opt_hwid) + 1 > gbb->hwid_size) {
562 gbb->hwid_size);
566 memset(gbb_base + gbb->hwid_offset, 0,
567 gbb->hwid_size);
568 strcpy((char *)(gbb_base + gbb->hwid_offset),
570 update_hwid_digest(gbb);
584 gbb->flags = val;
590 gbb_base + gbb->rootkey_offset,
591 gbb->rootkey_size);
594 gbb_base + gbb->bmpfv_offset,
595 gbb->bmpfv_size);
598 gbb_base + gbb->recovery_key_offset,
599 gbb->recovery_key_size);
628 write_to_file("successfully created new GBB to:",
642 "Manipulate the Google Binary Block (GBB)",