Home
last modified time | relevance | path

Searched hist:"7 a9e9f6e96a93617abd33ef48734b65ad792ec13" (Results 1 – 1 of 1) sorted by relevance

/rk3399_ARM-atf/drivers/partition/
H A Dpartition.c7a9e9f6e96a93617abd33ef48734b65ad792ec13 Wed Jan 31 22:21:48 UTC 2024 laurenw-arm <lauren.wehrmeister@arm.com> feat(gpt): validate CRC of GPT partition entries

While loading partition entries, calculate CRC using tf_crc32() for each
entry to find the full CRC value of the partition entry array.

The start of the GPT partition entry array is located at the LBA
indicated by the partition entry array LBA field in the GPT header. The
size of the partition entry array is indicated by the size of partition
entry multiplied by the number of partition entries.

Compare the calculated CRC with the partition entry array CRC in the GPT
header, error out if the values do not match.

Change-Id: I4bfed8cf903125c1ef3fac2f0f4c0fb87d63aa78
Signed-off-by: Lauren Wehrmeister <lauren.wehrmeister@arm.com>