Home | History | Annotate | Download | only in futility

Lines Matching defs:gbb

130 	GoogleBinaryBlockHeader *gbb = (GoogleBinaryBlockHeader *)buf;
137 printf("GBB header: %s <invalid>\n",
143 /* It looks like a GBB or we wouldn't be called. */
144 if (!futil_valid_gbb_header(gbb, len, &maxlen))
147 printf("GBB header: %s\n",
150 gbb->major_version, gbb->minor_version);
151 printf(" Flags: 0x%08x\n", gbb->flags);
154 gbb->hwid_offset, gbb->hwid_size);
156 gbb->bmpfv_offset, gbb->bmpfv_size);
158 gbb->rootkey_offset, gbb->rootkey_size);
160 gbb->recovery_key_offset, gbb->recovery_key_size);
166 printf("GBB header is invalid, ignoring content\n");
170 printf("GBB content:\n");
171 printf(" HWID: %s\n", buf + gbb->hwid_offset);
172 print_hwid_digest(gbb, " digest: ", "\n");
174 pubkey = (VbPublicKey *)(buf + gbb->rootkey_offset);
175 if (PublicKeyLooksOkay(pubkey, gbb->rootkey_size)) {
177 gbb->rootkey_offset;
178 state->rootkey.buf = buf + gbb->rootkey_offset;
179 state->rootkey.len = gbb->rootkey_size;
188 pubkey = (VbPublicKey *)(buf + gbb->recovery_key_offset);
189 if (PublicKeyLooksOkay(pubkey, gbb->recovery_key_size)) {
191 gbb->recovery_key_offset;
192 state->recovery_key.buf = buf + gbb->recovery_key_offset;
193 state->recovery_key.len = gbb->recovery_key_size;
202 bmp = (BmpBlockHeader *)(buf + gbb->bmpfv_offset);
296 /* BIOS should have a rootkey in the GBB */
303 /* BIOS should have a rootkey in the GBB */