diff options
author | Simon Glass | 2023-12-27 13:07:05 -0800 |
---|---|---|
committer | Simon Glass | 2023-12-31 07:21:02 -0700 |
commit | 997dac6edebe5b82f4d6f9b90753f0af6e9d04f0 (patch) | |
tree | 42c0bebc0af5e779a3982bd983646a78bfb53253 /include | |
parent | 47e1047b0cc25269124737696971ab0c3187666d (diff) |
bloblist: Checksum the entire bloblist
Use a sinple 8-bit checksum for bloblist, as specified by the spec
version 0.9.
Spec v0.9 specifies that the entire bloblist area is checksummed,
including unused portions. Update the code to follow this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Co-developed-by: Raymond Mao <raymond.mao@linaro.org>
Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/bloblist.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/bloblist.h b/include/bloblist.h index 68f97395b78..d2dcad69a1b 100644 --- a/include/bloblist.h +++ b/include/bloblist.h @@ -174,11 +174,10 @@ enum bloblist_tag_t { * sizeof(bloblist_hdr) since we need at least that much space to store a * valid bloblist * @spare: Spare space (for future use) - * @chksum: CRC32 for the entire bloblist allocated area. Since any of the + * @chksum: checksum for the entire bloblist allocated area. Since any of the * blobs can be altered after being created, this checksum is only valid * when the bloblist is finalised before jumping to the next stage of boot. - * Note that chksum is last to make it easier to exclude it from the - * checksum calculation. + * This is the value needed to make all checksummed bytes sum to 0 */ struct bloblist_hdr { u32 magic; |