mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-25 10:45:02 +00:00
vboot2: Scramble the GBB magic number
Compiling in the GBB magic number as is causes any tools that search for the number to fail. This patch allows firmware to embed XOR'ed signature. TEST=Booted Nyan in normal mode. FAFT:firmware_DevMode passes. BUG=none BRANCH=none Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Change-Id: Id18905a9969af3db24151e7c51332d0e94405108 Reviewed-on: https://chromium-review.googlesource.com/205416 Reviewed-by: Randall Spangler <rspangler@chromium.org> Commit-Queue: Daisuke Nojiri <dnojiri@chromium.org> Tested-by: Daisuke Nojiri <dnojiri@chromium.org>
This commit is contained in:
committed by
chrome-internal-fetch
parent
25c95d0774
commit
fc17308c39
@@ -22,6 +22,14 @@ static __inline struct vb2_shared_data *vb2_get_sd(struct vb2_context *ctx) {
|
||||
return (struct vb2_shared_data *)ctx->workbuf;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate gbb signature (the magic number)
|
||||
*
|
||||
* @param sig pointer to the signature bytes to validate
|
||||
* @return VB2_SUCCESS if valid or VB2_ERROR_GBB_MAGIC otherwise.
|
||||
*/
|
||||
int vb2_validate_gbb_signature(uint8_t *sig);
|
||||
|
||||
/**
|
||||
* Initialize a work buffer from the vboot context.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user