MeasuredBoot: Fix and optimize test data
Fix:
- The input size of the sw_type param was wrong. It was
larger than the actual size of the data. It causes an
overread (garbe was read) when `load_test_measurement_data()`
populates the input and the expected data structures.
This causes a verification failure because the received and
expected measurement was different.
Optimization:
- Add const modifier to the input and the expected data
to save RAM.
- Replace implicitly declared arrays with explicit ones.
This avoids that the same data is added to the .data section
multiple times.
- RAM usage is reduced by ~1KB in total.
Change-Id: Ic2496353613f1a7333a3cb6e39d84b9884dc55f9
Signed-off-by: Tamas Ban <tamas.ban@arm.com>
2 files changed