diff options
author | Randall Spangler <rspangler@chromium.org> | 2014-11-12 16:20:50 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-11-14 23:56:55 +0000 |
commit | efa37b87f2b4cd4b4f515e96201502ae0408cec7 (patch) | |
tree | bfa936c35d93779b80d1c864e36fca91a62b31ab /firmware/2lib/include/2struct.h | |
parent | 7c1eee09eff54c6e60a3b261e6df790c11331695 (diff) | |
download | vboot-efa37b87f2b4cd4b4f515e96201502ae0408cec7.tar.gz |
vboot2: Add api-level functions to use new data structures
And associated unit tests.
And fix a memory overwrite in the old vb_api_tests.c, which apparently
didn't touch a critical piece of the shared work buffer, but was still
wrong. (This was a problem in the test, not in the code being
tested.)
BUG=chromium:423882
BRANCH=none
TEST=VBOOT2=1 make runtests
Change-Id: I322fb7e6bb5214b0adcf5d6d48a0cd238abba88e
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/229738
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'firmware/2lib/include/2struct.h')
-rw-r--r-- | firmware/2lib/include/2struct.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/firmware/2lib/include/2struct.h b/firmware/2lib/include/2struct.h index de67bfc3..dd956219 100644 --- a/firmware/2lib/include/2struct.h +++ b/firmware/2lib/include/2struct.h @@ -611,7 +611,15 @@ struct vb2_shared_data { uint32_t workbuf_hash_offset; uint32_t workbuf_hash_size; - /* Current tag we're hashing */ + /* + * Current tag we're hashing + * + * For new structs, this is the offset of the vb2_signature2 struct + * in the work buffer. + * + * TODO: rename to workbuf_hash_sig_offset when vboot1 structs are + * deprecated. + */ uint32_t hash_tag; /* Amount of data we still expect to hash */ |